Note Java: Text in OneNote file Overlaps after converted to PDF

TextAnchoredOnPage.pdf (744.2 KB)
TextAnchoredOnPage.zip (6.6 MB)

Aspose Team,
We use the Aspose Note java package to convert Microsoft OneNote file to PDF file and found out that the text inside the red rectangle in the sample file overlaps with the text after it in the converted PDF file.

Following is the sample code that reproduces the problem and attached is the original OneNote file and the converted PDF file.

Checking the original OneNote file we found out that the text inside the red rectangle does not move when the text before it is added or deleted. It seems that it is anchored on the page.

The operating system is Ubuntu 18.04. Java version is 1.8. Aspose Note java package is 21.7.

import com.aspose.note.Document;
import com.aspose.note.SaveFormat;

public class SaveOneNotePdf {

public static void main(String[] args) {
    String licenseFile = "path_to_license_file";
    String inputFile = "path_to_input_onenote_file";
    String outputFile = "path_to_output_pdf_file";

    try {
        new com.aspose.note.License().setLicense(licenseFile);
        Document onedoc= new Document(inputFile);
        onedoc.save(outputFile, SaveFormat.Pdf);
    }
    catch(Exception ex) {
        ex.printStackTrace();
    }
}

}

@xyang,
We have logged the issue as “NOTEJAVA-988” in our database for investigations. Once we will have some news for you, we will update you in this topic.

The issues you have found earlier (filed as NOTEJAVA-988) have been fixed in this update. This message was posted using Bugs notification tool by alexei.s