Hi,
I am converting pdf to pdf a with the latest aspose java api.
After conversion if I click on enable editing (I convert to PDF A) I get the following error :
image.png (6.8 KB)
Java code -
Document pdfDocument = new Document(filePath);
pdfDocument.setXrefGapsAllowed(false);
DocumentPrivilege documentPrivilege = DocumentPrivilege.getAllowAll();
PdfFileSecurity fileSecurity = new PdfFileSecurity(pdfDocument);
fileSecurity.setPrivilege(documentPrivilege);
// Convert to PDF/A compliant document
// During conversion process, the validation is also performed
pdfDocument.convert(getDataDir() + "log.xml", PdfFormat.PDF_A_1A, ConvertErrorAction.Delete);
// Save output document
pdfDocument.save(filePath);
I uploaded the PDF before conversion and after to see the output error.
Aspose.zip (351.4 KB)