Hello!
Ich detected a problem using Aspose.PDF 24.8.
When I convert the input.pdf from PDF to PDF/A-2 conversion creates dark page, the conversion now fails with this error:
com.aspose.pdf.internal.ms.System.l6n: out of sync
at com.aspose.pdf.internal.ms.System.Collections.Generic.lf$lI.le(Unknown Source) ~[aspose-pdf-24.8.jar:24.8]
at com.aspose.pdf.internal.ms.System.Collections.Generic.lf$lI.hasNext(Unknown Source) ~[aspose-pdf-24.8.jar:24.8]
at com.aspose.pdf.internal.ms.System.Collections.Generic.lf$lf$lI.hasNext(Unknown Source) ~[aspose-pdf-24.8.jar:24.8]
at com.aspose.pdf.internal.l11l.l1j.lf(Unknown Source) ~[aspose-pdf-24.8.jar:24.8]
at com.aspose.pdf.internal.l11l.l1j.lI(Unknown Source) ~[aspose-pdf-24.8.jar:24.8]
at com.aspose.pdf.internal.l11l.l1j.l6if(Unknown Source) ~[aspose-pdf-24.8.jar:24.8]
at com.aspose.pdf.internal.l11l.l1j.l3l(Unknown Source) ~[aspose-pdf-24.8.jar:24.8]
at com.aspose.pdf.internal.l11l.l1j.l3j(Unknown Source) ~[aspose-pdf-24.8.jar:24.8]
at com.aspose.pdf.internal.l11l.l1y.l5l(Unknown Source) ~[aspose-pdf-24.8.jar:24.8]
at com.aspose.pdf.internal.l11l.l1j.lI(Unknown Source) ~[aspose-pdf-24.8.jar:24.8]
at com.aspose.pdf.ADocument.lI(Unknown Source) ~[aspose-pdf-24.8.jar:24.8]
at com.aspose.pdf.ADocument.convert(Unknown Source) ~[aspose-pdf-24.8.jar:24.8]
at com.aspose.pdf.Document.convert(Unknown Source) ~[aspose-pdf-24.8.jar:24.8]
Kind regards!
@dvtdaten
It seems you are encountering an issue with converting a PDF to PDF/A-2 format using Aspose.PDF version 24.8, which results in an “out of sync” error. This type of error can occur due to various reasons, including issues with the input PDF file or the specific version of the library being used.
Here are some steps you can take to troubleshoot and potentially resolve the issue:
-
Check the Input PDF: Ensure that the PDF file you are trying to convert is not corrupted and is compliant with PDF standards. You can try validating the PDF file using tools that check for compliance with PDF/A standards.
-
Update Aspose.PDF: If possible, consider updating to a newer version of Aspose.PDF. There may have been bug fixes or improvements in later versions that address the issue you are facing.
-
Error Handling: When performing the conversion, you can specify how to handle errors using the ConvertErrorAction
parameter. This allows you to log errors or throw exceptions, which can provide more insight into what might be going wrong during the conversion process.
-
Review Documentation: For detailed guidance on converting PDFs to PDF/A format, you can refer to the official Aspose documentation. It provides step-by-step instructions and best practices for ensuring successful conversions.
-
Seek Community Support: If the problem persists, consider posting your issue on the Aspose support forum. Providing details about the input PDF and the exact error message can help the community or support team assist you more effectively.
If you need further assistance or specific code examples for handling PDF/A conversion, feel free to ask!
Sources:
[1]: PDF To PDFA | Aspose.PDF for .NET API Reference
[2]: Validate PDF Files A Standard - Aspose
I still have the same problem using 24.9:
When I convert input.pdf (2.3 MB) to PDF/A-2, the conversion now fails with this error:
com.aspose.pdf.internal.ms.System.l6n: out of sync
at com.aspose.pdf.internal.ms.System.Collections.Generic.lf$lI.le(Unknown Source) ~[aspose-pdf-24.9.jar:24.9]
at com.aspose.pdf.internal.ms.System.Collections.Generic.lf$lI.hasNext(Unknown Source) ~[aspose-pdf-24.9.jar:24.9]
at com.aspose.pdf.internal.ms.System.Collections.Generic.lf$lf$lI.hasNext(Unknown Source) ~[aspose-pdf-24.9.jar:24.9]
at com.aspose.pdf.internal.l10j.l1j.lf(Unknown Source) ~[aspose-pdf-24.9.jar:24.9]
at com.aspose.pdf.internal.l10j.l1j.lI(Unknown Source) ~[aspose-pdf-24.9.jar:24.9]
at com.aspose.pdf.internal.l10j.l1j.l6if(Unknown Source) ~[aspose-pdf-24.9.jar:24.9]
at com.aspose.pdf.internal.l10j.l1j.l3t(Unknown Source) ~[aspose-pdf-24.9.jar:24.9]
at com.aspose.pdf.internal.l10j.l1j.l3h(Unknown Source) ~[aspose-pdf-24.9.jar:24.9]
at com.aspose.pdf.internal.l10j.l1y.l5t(Unknown Source) ~[aspose-pdf-24.9.jar:24.9]
at com.aspose.pdf.internal.l10j.l1j.lI(Unknown Source) ~[aspose-pdf-24.9.jar:24.9]
at com.aspose.pdf.ADocument.lI(Unknown Source) ~[aspose-pdf-24.9.jar:24.9]
at com.aspose.pdf.ADocument.convert(Unknown Source) ~[aspose-pdf-24.9.jar:24.9]
at com.aspose.pdf.Document.convert(Unknown Source) ~[aspose-pdf-24.9.jar:24.9]
This problem did not occour up to version 24.8.
Kind regards
@dvtdaten
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-44373
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.