Exception during PDF to PDF/A-2a conversion

Hello!

When converting a PDF to PDF/A-2a on Ubuntu / Java 8 / Aspose PDF for Java 23.4, the following error occurs:

    com.aspose.pdf.internal.ms.System.l8j: Value was either too large or too small for an Int32.
    	at com.aspose.pdf.internal.ms.System.l2j.lh(Unknown Source)
    	at com.aspose.pdf.internal.l10t.ly.lI(Unknown Source)
    	at com.aspose.pdf.internal.l10t.ly.l1t(Unknown Source)
    	at com.aspose.pdf.internal.l10t.ly.lf(Unknown Source)
    	at com.aspose.pdf.internal.l10t.l0if.l0t(Unknown Source)
    	at com.aspose.pdf.internal.l10t.ly.lI(Unknown Source)
    	at com.aspose.pdf.ADocument.lI(Unknown Source)
    	at com.aspose.pdf.ADocument.convert(Unknown Source)
    	at com.aspose.pdf.Document.convert(Unknown Source)

Sample code:

try (com.aspose.pdf.Document pdf = new com.aspose.pdf.Document("exception.pdf")) {
    PdfFormatConversionOptions conversionOptions = new PdfFormatConversionOptions(PdfFormat.PDF_A_2A);

    ByteArrayOutputStream conversionLog = new ByteArrayOutputStream();
    conversionOptions.setLogStream(conversionLog);

    pdf.convert(conversionOptions);
}

Link to the input file: https://drive.google.com/file/d/1TR0X1OXJMqFLCGC3DXzsstEpISw1JnWJ/view?usp=share_link

Could you please take a look? Thanks!

@t.dobreva

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-42783

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.