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

Free Support Forum - aspose.com

Convert wordml to pdfa


I need a Java library to convert wordml documents to pdfa. Which component do I need for this? Could you also send me example code?

with kind regards,
Annelies van Ees

Hi Annelies,

Thank you for your interest in Aspose.Words for Java.

Sure, you can specify the PDF standards compliance level to PdfA1b or PDF 1.5 during rendering your WordML document to PDF format. Here is the simple code snippet to achieve this using Aspose.Words for Java:
DocumentBuilder builder = new DocumentBuilder();
builder.writeln("Hello World");

PdfSaveOptions options = new PdfSaveOptions();

builder.getDocument().Save(“C:\test\out.pdf”, options);

In this case, the output PDF file will comply with the PDF/A-1b standard. Please let me know if I can be of any further assistance.

Best regards,