The order tags are lost when converting to PDF

We are using Aspose.Word for Java to generate letters that is .docx or .pdf

The document templates contains the ordering tags that helps the 508 users tools (like JAWS and Dragon) to read the content in order (Left to Right, then top to bottom), when the output is still .docx that is still fine

but when using “com.aspose.words.Document extends com.aspose.words.Document.saveToPdf(…)”

the tags are not maintained and the reading tools like JAWS start reading the content in wrong order

When comparing that to getting the .docx content and just convert it in Office desktop software like MSWORD to PDF it maintains the order tags and JAWS reads correctly

@petertouny,

Thanks for your inquiry. To ensure a timely and accurate response, please attach the following resources here for testing:

  • Your input Word document.
  • Please attach the output PDF file that shows the undesired behavior.
  • Please create a simple Java application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we’ll start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.

ok sorry for the delayed response in the attached zip please start with “readme.docx”

IssueInfo.zip (6.2 MB)

@petertouny

Thanks for sharing the code and documents. We are investigating this issue and will share our finding with you soon.

@petertouny

Please use PdfSaveOptions.ExportDocumentStructure property as shown below to export document structure. Hope this helps you.

Document doc = new Document(MyDir + "input.doc");
PdfSaveOptions options = new PdfSaveOptions();
options.setExportDocumentStructure(true);
doc.save(MyDir + "18.10.pdf", options);
1 Like

thank you the answer is satisfactory

3 posts were split to a new topic: Export Alternative Text of Image in PDF

A post was split to a new topic: Wrong order of tags when converting to PDF