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

Free Support Forum - aspose.com

Creating a PDF file with PDF/a-1B format

Hi there,

Is it possible to create a PDF (PDF/a-1B format) using Aspose.Words in java?

Thank you.
Best,
RMRodrigues.

Hi Rui,


Thanks for your interest in Aspose.Words for Java API. Yes, it is possible to save Word document to PDF such that the output file will comply with the PDF/A-1b standard. PDF/A-1b has the objective of ensuring reliable reproduction of the visual appearance of the document. Please see following sample code:
Document doc = new Document(getMyDir() + “in.docx”);
PdfSaveOptions opts = new PdfSaveOptions();
opts.setCompliance(PdfCompliance.PDF_A_1_B);
doc.save(getMyDir() + “out.pdf”, opts);
Hope, this helps.

Best regards,