Can we generated PDFs with tags using Aspose.words Java?

We are using aspose-words-jdk16 (version: 17.1.0) to generate PDFs in our application. But these PDFs are missing tags. We need to add tags to PDFs to make the documents ADA compliant. Please advise if there is a way to generate PDFs with tags using Aspose.words java.

@swathibairu You can specify PDF document compliance to export tagged PDF:

Document doc = new Document("C:\\Temp\\in.docx");
PdfSaveOptions opt = new PdfSaveOptions();
opt.setCompliance(PdfCompliance.PDF_UA_1);
doc.save("C:\\Temp\\out.pdf", opt);
1 Like

that helped. Thank you!

1 Like