Pdfa-1a issue

Hello Aspose,

I’m using Aspose PDF for Java 17.11 to convert a simple pdf file to pdfa-1a as below:

new com.aspose.pdf.License().setLicense(licenseFilePath);
com.aspose.pdf.Document pdf = new com.aspose.pdf.Document(WORKING_DIR + “\5.pdf”);
String targetPdf = “5_pdfa.pdf”;
pdf.convert(WORKING_DIR + “\pdf_convert_log.xml”, com.aspose.pdf.PdfFormat.PDF_A_1A, com.aspose.pdf.ConvertErrorAction.None);
pdf.save(WORKING_DIR + “\” + targetPdf);
pdf = new com.aspose.pdf.Document(WORKING_DIR + “\” + targetPdf);
boolean valid = pdf.validate(WORKING_DIR + “\validation-result-A1A.xml”, com.aspose.pdf.PdfFormat.PDF_A_1A);
System.out.println("Valid: " + valid);

The result is “Valid: true” but actually the output file does not conform to pdfa-1a when I upload it to PDF Tools Online - Validate PDF to check. Error is as below:

"The key Type is required but missing.

The document does not conform to the requested standard.

The document doesn’t provide appropriate logical structure information.

The document does not conform to the PDF/A-1a standard.

Done."

Can you have a look? This is the sample pdf file I have: 5.pdf (7.8 KB)

Thanks,
Tuyen

@vutuyen2636,

We managed to replicate the problem of the failure compliance test. It has been logged under the ticket ID PDFNET-44687 in our bug tracking system. We have linked your post to this ticket and will keep you informed regarding any available updates.