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

Free Support Forum - aspose.com

Does Aspose.Words for Java supports doc/docx to PDF/A

Hi,
I couldn't find any API support, however, attached picture from Aspose.Words page confuses me. We have purchased the Aspose.Words for Java license already.

Please follow the attachment.

Br,
Kalam
Hi Kalam,

Thanks for your inquiry. Yes, Aspose.Words supports the conversion of Word document into PDF and PDF/A. Please check the following code example. Hope this helps you.

Document doc = new Document(MyDir + "document.doc");
//Save the document in PDF format.
doc.save(MyDir + "Aspose_DocToPDF.pdf",SaveFormat.PDF);

//Save the document in PDF format with PDF/A-1a compliance level.
PdfSaveOptions options = new PdfSaveOptions();
options.setCompliance(PdfCompliance.PDF_A_1_A);
doc.save(MyDir + "Aspose_DocToPDF_A_1_A.pdf",options);

Hi,

Thanks for the code example, just wondering if I am correct. Is this code should be the green statement instead of blue.

Br,
Kalam
<span style=“color: rgb(128, 128, 128); font-style: italic; background-color: rgb(255, 255, 255); font-family: “Courier New”; font-size: 9pt;”>
<span style=“color: rgb(128, 128, 128); font-style: italic; background-color: rgb(255, 255, 255); font-family: “Courier New”; font-size: 9pt;”>//Save the document in PDF format with PDF/A-1a compliance level.
<pre style=“background-color: rgb(255, 255, 255); font-family: “Courier New”; font-size: 9pt;”>PdfSaveOptions options = new PdfSaveOptions();
options.setCompliance(PdfCompliance.PDF_A_1_A);
<pre style=“font-family: “Courier New”; font-size: 9pt;”>doc.save(MyDir + “Aspose_DocToPDF_A_1_A.pdf”,options); <pre style=“color: rgb(51, 51, 51); background-color: rgb(255, 255, 255); font-family: “Courier New”; font-size: 9pt;”>Instead of:<pre style=“background-color: rgb(255, 255, 255); font-family: “Courier New”; font-size: 9pt;”>doc.save(MyDir + “Aspose_DocToPDF_A_1_A.pdf”,SaveFormat.PDF); <pre style=“color: rgb(51, 51, 51); background-color: rgb(255, 255, 255); font-family: “Courier New”; font-size: 9pt;”>
Hi Kalam,

Thanks for your inquiry. Yes, your understanding is correct. I have updated the code in my previous post. We apologize for your inconvenience.