Producing PDF/A document

Dear Aspose Support,


We use Aspose Java successfully for producing documents in various formats (doc, docx, pdf …) with mail-merging since a few years.
Is there any possibility to produce PDF/A documents with Aspose Java? I have read this post (from 2012) : PDF to PDF/A conversion - Java product
At that time it was said that it was not supported for Aspose Java.

Has the situation changed since that time?
If this is supported now, in which aspose version has it been introduced?
May you provide some code example?


Thanks a lot in advance
Regards
Emmanuel

Hi Emmanuel,


Thanks for your inquiry.

Please upgrade to Aspose.Words for Java 17.2.0 and use the following direct code to convert Word formats to a PDF format that complies with either the PDF/A-1a standard or the PDF/A-1b standard.
<span style=“background-color: rgb(255, 255, 255); font-family: “Courier New”; font-size: 9pt;”>
<span style=“background-color: rgb(255, 255, 255); font-family: “Courier New”; font-size: 9pt;”>Document doc = <span style=“font-family: “Courier New”; font-size: 9pt; color: rgb(0, 0, 128); font-weight: bold;”>new <span style=“background-color: rgb(255, 255, 255); font-family: “Courier New”; font-size: 9pt;”>Document(<span style=“font-family: “Courier New”; font-size: 9pt; color: rgb(0, 128, 0); font-weight: bold;”>“D:<span style=“font-family: “Courier New”; font-size: 9pt; color: rgb(0, 0, 128); font-weight: bold;”>\<span style=“font-family: “Courier New”; font-size: 9pt; color: rgb(0, 128, 0); font-weight: bold;”>temp<span style=“font-family: “Courier New”; font-size: 9pt; color: rgb(0, 0, 128); font-weight: bold;”>\<span style=“font-family: “Courier New”; font-size: 9pt; color: rgb(0, 128, 0); font-weight: bold;”>in.docx”<span style=“background-color: rgb(255, 255, 255); font-family: “Courier New”; font-size: 9pt;”>);
<pre style=“background-color: rgb(255, 255, 255); font-family: “Courier New”; font-size: 9pt;”>
// Perform document processing tasks such as mail merge

PdfSaveOptions opts = new PdfSaveOptions();
opts.setCompliance(PdfCompliance.PDF_A_1_A);
//opts.setCompliance(PdfCompliance.PDF_A_1_B);

doc.save(“D:\temp\awjava-17.2.0.pdf”, opts);

Hope, this helps.

Best regards,

Hi Awais,

Thanks a lot for the answer and have a nice weekend!
Regards
Emmanuel

Hi Emmanuel,


Thanks for the acknowledgement.

Please continue using our API’s and in the event of any further query, please feel free to contact.