One Note to pdf conversion issue - incorrent result with RTL languages


#1

Hi, I am trying to convert one note file to pdf format and got a bad result in the direction of the text.
I combined RTL languages (Arabic and Hebrew) and LTR language (English) and the direction of the text is incorrect.

I am using Aspose.Note for Java 19.7 and have 30 day trial license.
Can you please help me with this issue?

Here are my files: files.zip (79.0 KB) and here is my code:

private static void convertDocToPdf(File file) {
String outputPdfFile = new StringBuilder().append(OUTPUT_PDF_FOLDER).append(File.separator).append(FilenameUtils.removeExtension(file.getName())).append(".pdf").toString();
try {
Document doc = new Document(file.getAbsolutePath());
doc.save(outputPdfFile, new PdfSaveOptions());
} catch (final Exception e) {
System.out.println(e);
}
}


#2

@ghaj17,

Thanks for the document and output PDF.

After an initial test, I am able to reproduce the issue as you mentioned by converting your document to PDF file format. I found incorrect result for RTL languages when converting One Note to PDF file format. I have logged a ticket with an id “NOTEJAVA-682” for your issue. We will look into it soon.

Once we have an update on it, we will let you know.