Hi,
I am using aspose-words-17.3.0-jdk16.jar to create a pdf file. I am using Adobe Acrobat Pro XI's accessibility checker and I am receiving Title Failed issue (please see attached Capture.PNG). When I look at the report it says that document title is showing in title bar failed (please see attached Capture1.PNG). The html file I am using is attached. It is saved as txt for uploading to this post. Below is the code I am using to create the pdf. How can I get the title to pass the accessibility test?
public void convert() {
Document document = new Document(new FileInputStream("test.html"));
DocumentBuilder builder = new DocumentBuilder(document);
PdfSaveOptions opts = new PdfSaveOptions();
opts.setExportDocumentStructure(true);
document.getBuiltInDocumentProperties().setTitle("hello");
document.updatePageLayout();
document.save("test.pdf", opts);
}