Hi
I am converting the PDF 1.5 to PDF_A_1A but got the exception in log as attached. Could you help me to resolve this
Error Log2.png (15.0 KB)
Error Log1.jpg (379.4 KB)
Hi
I am converting the PDF 1.5 to PDF_A_1A but got the exception in log as attached. Could you help me to resolve this
Error Log2.png (15.0 KB)
Error Log1.jpg (379.4 KB)
It sounds like you’re encountering issues while converting a PDF to PDF/A-1a compliance. This is often due to specific content or formatting in the original PDF that doesn’t meet the PDF/A standards.
Cause: The issues may arise from non-embeddable fonts, non-compliant content (like transparency effects or improperly tagged annotations), or other elements that violate PDF/A standards.
Solution: Here are some steps to troubleshoot and resolve the issue:
Check for Fonts: Ensure that all fonts used in the PDF are embeddable. Replace any non-embeddable fonts with standard fonts that are allowed.
Review Content: Look for any content that may not comply with PDF/A standards, such as transparency effects, annotations, or forms that are not properly tagged.
Use PdfFormatConversionOptions: When converting, utilize the PdfFormatConversionOptions
class to specify how to handle errors and optimize the conversion. For example, you can set the ErrorAction
to handle any problematic elements gracefully.
Here’s a basic example of how to set this up in code:
PdfFormatConversionOptions options = new PdfFormatConversionOptions
{
Format = PdfFormat.PDF_A_1A,
ErrorAction = ConvertErrorAction.Delete // or other actions as needed
};
Document pdfDocument = new Document("input.pdf");
pdfDocument.Convert("output.pdf", options);
Log File: Enable logging to capture detailed information about what might be causing the conversion to fail. This can provide insights into specific elements that need to be addressed.
Validate PDF/A Compliance: After conversion, use a PDF/A validation tool to check if the output file meets the compliance requirements. This can help identify any remaining issues.
Next Steps: If you continue to face challenges, please share specific error messages or logs, and I will assist you further.
Let me know if this helps!
Hi,
Could you help me on
The transparency is prohibited (‘Group’ key)
The transparency is prohibited (‘Group’ key)
The transparency is prohibited (‘Group’ key)
Required property ‘pdfaid:conformance’ for schema ‘pdfaid’ missing
Object offset in the document stream is mismatched with its actual position
Object offset in the document stream is mismatched with its actual position
Object offset in the document stream is mismatched with its actual position
image.png (5.9 KB)
image.png (13.8 KB)
Have you tried using the latest version of the API? Also, can you please share your sample code snippet and sample source PDF document for our reference? We will test the scenario in our environment and address it accordingly.
Have analyzed the error and found that one font “MyriadPro-Regular” is not convertible, might be the reason for PDFA compliance.
Can you fix this issue and also provide the list of supported fonts by Aspose.
There is no such font list that is supported by Aspose.PDF. It depends upon the system where API is being used and if font is installed and present there, API fetches it to process the PDF conversion or other operations. However, we can carry out an investigation against this particular case. You can try installing this particular font in your system and if error keeps occurring, please share your sample PDF document along with sample code snippet so that we can further proceed accordingly.