I encountered a problem converting from PDF to PDF/A.
The file I’m attaching file1 1 (1).pdf (135,0 KB) cannot be converted to PDF/A.
The conversion result is always in the “standard” PDF format.
I tried both the 22.12 version we have in our company and the “online” conversion from your website, where version 25.6.0 is available.
Note: The attached file is not the only one with this problem.
Could you please check the cause of this malfunction?
Thank you.
It sounds like you’re having trouble converting a PDF file to PDF/A format, and I understand how frustrating that can be. Here’s a structured approach to troubleshoot and resolve the issue:
Cause: The conversion may fail due to various reasons, such as invalid PDF structure, missing embedded fonts, or incorrect conversion settings.
Solution: Follow these steps to ensure a successful conversion:
Validation Before Conversion: Ensure that the PDF file is valid for conversion. Use the validation method to check if the document meets the necessary standards for PDF/A compliance. This validation will generate a log file that can help identify any issues.
Use the Correct Conversion Method: Make sure you are using the appropriate method for conversion. For example, you can use the Convert method from the Document class, specifying the desired PDF/A format and handling any conversion errors appropriately.
Check for Missing Fonts: If the PDF contains fonts that are not embedded, the conversion may fail. Substitute missing fonts with available alternatives using the font substitution feature.
Review Conversion Options: When converting, specify options such as the PDF/A version (e.g., PDF_A_1B, PDF_A_3B) and the action to take for elements that cannot be converted (e.g., delete or keep).
Here’s a simple code snippet to illustrate how to convert a PDF to PDF/A:
using (var document = new Aspose.Pdf.Document("input.pdf"))
{
// Validate the PDF
document.Validate("validationLog.xml", Aspose.Pdf.PdfFormat.PDF_A_1B);
// Convert to PDF/A
document.Convert("conversionLog.xml", Aspose.Pdf.PdfFormat.PDF_A_1B, Aspose.Pdf.ConvertErrorAction.Delete);
// Save the converted document
document.Save("output.pdf");
}
Next Steps: If you continue to experience issues, please check the log files generated during validation and conversion for any specific errors that might indicate what’s going wrong. You can also share those logs with me for further assistance.
I hope this helps! Please let me know if you have any further questions or need additional support.
Are you using Aspose.PDF for Java or .NET? Can you please share the which specific PDF/A format you are trying to convert your PDF into? If possible, please share the sample code snippet that you have been using for conversion so that we can try to replicate the issue in our environment and address it accordingly.
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-45237
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.