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!