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)