Convert wordml to pdfa

Hi,

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();
options.setCompliance(PdfCompliance.PDF_A_1_B);

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,