We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Word doc to PDF 1.7 compliance issue

Hi,
I’m trying to understand why I see an “error” about PDF compliance when I convert attached Word docx file to pdf (attached too):
screenshot (24.2 KB)

Accessibility Doc.docx (35.6 KB)
accessibility-doc.pdf (44.8 KB)

Thanks,
Brian

@leftofcentre You should use PdfCompliance.PdfUa1 to make the PDF document PDF/UA compliant:

Document doc = new Document(@"C:\Temp\in.docx");
PdfSaveOptions opt = new PdfSaveOptions();
opt.Compliance = PdfCompliance.PdfUa1;
doc.Save(@"C:\Temp\out.pdf", opt);

Great! That solved the issue.

Thanks