Hello,
Using the latest Aspose.PDF java version (19.10) I am trying to convert some very simple PDFs to different PDF/A formats.
Here the code used:
com.aspose.pdf.Document pdfDocument = null;
try (InputStream in = new FileInputStream(filePath)){
pdfDocument = new com.aspose.pdf.Document(in);
pdfDocument.convert(getAsposePdfFactoryLogFile().getAbsolutePath(), getAsposePDFAType(pdfAType), ConvertErrorAction.Delete);
pdfDocument.setLinearized(true);
pdfDocument.save(filePath);
} catch(Exception ex) {
throw new DocFactoryException(ex);
} finally {
if(pdfDocument != null) {
pdfDocument.close();
}
}
The produced pdf_A_1A, pdf_A_2A, pdf_A_3A cannot be validated by diverses online tools, example PDF Tools Online - Validate PDF
The pdf_A_1B, pdf_A_2B and pdf_A_3B are recognized as valid PDF/A PDFs.
The PDF Tools Online - Validate PDF gives the following result: Validating file “pdf_A_1A.pdf” for conformance level pdfa-1a 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.
Can you please check this at your side and fix this?
Regards
Emmanuel
Can you please share complete environment details with us to further investigate this issue. Before sharing requested information can you please try to use Aspose.PDF latest version 20.4 on your end and if there is still an issue than please share feedback with us.
I have done the following tests using the license:
I generate a pdf with aspose.words (20.4) from a very simple template.docx (attached in the message below in a zip because docx are not allowed here).
then I convert the pdf with the code from my previous message
All the PDFs claims to be PDF/A if I open them in Acrobat Reader
The produced pdf_A_1A, pdf_A_2A, pdf_A_3A cannot be validated by diverses online tools, example PDF Tools Online - Validate PDF
The pdf_A_1B, pdf_A_2B and pdf_A_3B are recognized as valid PDF/A PDFs.
The PDF Tools Online - Validate PDF gives the following result: Validating file “pdf_A_1A.pdf” for conformance level pdfa-1a 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. PDF_A_1A.pdf (18.3 KB) PDF_A_1B.pdf (18.2 KB) PDF_A_2A.pdf (18.3 KB) PDF_A_2B.pdf (18.3 KB) PDF_A_3A.pdf (18.3 KB) PDF_A_3B.pdf (18.3 KB) template.zip (9.2 KB)
I have observed your issue and like to inform that I have created investigation ticket with ID PDFJAVA-39417 in our issue tracking system to investigate and resolve this issue as soon possible.
Thank you Adnan.Ahmad
Do you know the average time needed by your teams for the resolving such issues? When can we expect to have a fixed Version?
Have a nice day
Emmanuel Comba
Are there any news about this bug? It has been transmitted 2.5 months ago and I still don’t have any news about this. We would like to be able to integrate the bug fix asap now.
Thanks in advance for your feedback.
Emmanuel
We are afraid that earlier-logged issue is not yet resolved. We will surely get it fixed however, it will be fixed on first come first serve basis. We will surely inform you as soon as we have some definite updates in this regard. Please spare us some time.
Any news about this issue? We have reported this issue more than 3 months ago and we don’t even know if and when this will be fixed by the Aspose developers.
Can you please give us these information? We really need to get a clear outlook about this.
Thanks in advance.
We assure you that we resolve every reported issue however, they are resolved on the basis of support model under which they were logged and their resolution time varies depending upong the number of issues logged prior to them. Anyways, we have escalated the issue priority to next level and we will definitely try to share some news about its resolution ETA with you soon. We highly appreciate your patience in this regard. Please give us some time.
We investigated the earlier logged ticket and found that it was not Aspose.PDF bug, but incorrect validation of this service: www.pdf-online.com. Documents are valid according to standard. Adobe Acrobat DC Preflight cannot find any error (screenshots are attached).
Also, other online validations work well without any error:
Thanks a lot for your answer and for the online verification tool. this will help a lot.
But honestly, have you or your colleagues fixed something ?
For demonstrating all the problem I had, I have also used your online pdf conversion tool in the past:
Until last week it was slow and the result was only good with the PDF/A 1B. The PDF/A 3A was not recognized as PDF/A by Adobe Acrobat also.
I have done the test today: it is fast and the PDF/A 3A suddenly works.
Believe me I am really sure that the results were as described here (I was not the only one who has tested also)
Anyway thanks a lot. You can consider this thread as closed. I will comeback to you if I have any other issues.
Best regards
Emmanuel
We revise API update every month and with each new version, API has improvements in terms of bug fixes and performance. As far as your specific issue was concerned, we investigated and tested the scenario using Aspose.PDF for Java 20.8 (which is latest version at the moment) and provided you feedback.
Nevertheless, it is great to hear that your issue has been now resolved. Please keep using our API and in case you face any issue, please feel free to let us know.