I’m using Aspose PDF for Java v23.1
Trying to convert a .pdf file to PDF/A-1A format using below code:
document.convert(new ByteArrayOutputStream(), PdfFormat.PDF_A_1A, ConvertErrorAction.Delete); document.save(outputFilePath);
No errors are thrown in the process however the resulting file does not conform with PDF/A-1A specification.
Original and converted files are attached.
convertedPDF.pdf (127.1 KB)
originalPDF.pdf (111.4 KB)