Issue converting PDF to PDF/A_2B

Hello,

I have an error when i’m trying to convert a PDF file to format PDF/A_2B, with library com.aspose:aspose-pdf:23.7.

The original file seems compliant with an online tool like “https://avepdf.com/pdfa-validation”. But, when i’m trying to validate it through API :

pdfSource.validate(generatedValidationPath, PdfFormat.PDF_A_2B)

The result is ‘false’ (validation log is attached)

I’m still trying to convert the file after that, but it crashes, with following error :

java.lang.StringIndexOutOfBoundsException: String index out of range: 8
at java.base/java.lang.StringLatin1.charAt(StringLatin1.java:47)
at java.base/java.lang.String.charAt(String.java:693)
at com.aspose.pdf.internal.ms.System.l3t.lf(Unknown Source)
at com.aspose.pdf.internal.ms.System.l3t.lI(Unknown Source)
at com.aspose.pdf.internal.ms.System.l3t.lI(Unknown Source)
at com.aspose.pdf.internal.ms.System.l3t.lI(Unknown Source)
at com.aspose.pdf.XmpValue.lI(Unknown Source)
at com.aspose.pdf.XmpValue.(Unknown Source)
at com.aspose.pdf.internal.l10j.lI.lf(Unknown Source)
at com.aspose.pdf.internal.l10j.lI.lI(Unknown Source)
at com.aspose.pdf.internal.l10j.lb.lI(Unknown Source)
at com.aspose.pdf.internal.l10l.l0j.lI(Unknown Source)
at com.aspose.pdf.internal.l10l.l0p.lI(Unknown Source)
at com.aspose.pdf.internal.l2p.l0p.lI(Unknown Source)
at com.aspose.pdf.ADocument.lf(Unknown Source)
at com.aspose.pdf.ADocument.lf(Unknown Source)
at com.aspose.pdf.ADocument.save(Unknown Source)
at com.aspose.pdf.Document.save(Unknown Source)

But the final PDF is still generated… with a null size (i cannot open it with Adobe). And a conversion log file is generated too (attached in the zip as well).

Regards
bug_pdfA_2B.zip (25.8 KB)

@gbe

Can you please try using 24.4 version of the API and if issue still persists, please share your sample source and output PDF documents for our reference so that we can test the scenario in our environment and address it accordingly.

Hello @asad.ali

Thanks for your quick answer.
The conversion doesn’t work neither with 24.4 Aspose PDF library.
Here is attached the sample (original pdf file + groovy script).

Regards
bug_convert_pdfa_2b.zip (1.4 MB)

.

@gbe

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFJAVA-43966

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

Hello @asad.ali

Do you have any hint about the fix release on this issue ?

Regards

@gbe

The ticket has been logged under free support model and it will be prioritized on a first come first serve basis. We will keep you informed with the progress in this forum thread. Please be patient and spare us some time.

We are sorry for the inconvenience.

The issues you have found earlier (filed as PDFJAVA-43966) have been fixed in Aspose.PDF for Java 24.11.