I am looking for Java API for converting the PDF file to PDF/A-1A file. Please let me know which do i need to use Aspose.PDF or Aspose.words? Please provide example as well?

i have tried to implement the Aspose words to do the same. But unfortunately i am facing below exception.The PDF file i am trying to convert is the merged pdf file of different files(word, excel, image).
Please suggest how to overcome this issue.
image.png (2.7 KB)


Thank you for contacting support.

You can convert any PDF file to PDF/A-1A format file by specifying PdfFormat.PDF_A_1A, as explained in Convert PDF to other Formats.

We hope this will be helpful. Please feel free to contact us if you need any further assistance.

Thank you for responding. As per the given document it is given for other formats except PDF/A-1A. I have tried to implement it to convert the PDF file to PDF/A-1A , but i am facing the exception “Unknown File Format”.


Would you please share source PDF file along with narrowed down code snippet so that we may try to reproduce and investigate it in our environment.