Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

PDFA Conversion fails

$
0
0
I tried converting PDF to PDFA file using the code snippet from your site and the following code;
public static void ConvertToPDFA(string filePath)
{    var asposeLicense = new License();    asposeLicense.SetLicense(Path.GetFullPath(@"..\..\..\Aspose.Total.lic"));    string logPath = $@"{Path.GetDirectoryName(filePath)}\log.xml";    string outputFilePath = $@"{Path.GetDirectoryName(filePath)}\{Path.GetFileNameWithoutExtension(filePath)}_pdfa.pdf";    Document pdfDocument = new Document(filePath);    // Convert to PDF/A compliant document    //during conversion process, the validation is also performed    pdfDocument.Convert(logPath, PdfFormat.PDF_A_1B, ConvertErrorAction.Delete);    // Save output document    pdfDocument.Save(outputFilePath);
}
There doesn't seem to be a guarantee that the PDF-PDFA conversion will work. I have attached a sample PDF document and the converted file that increased in file size, but does not give the PDFA information bar on top of the file.
With our large reports files, the PDFA conversion failed similar to the attached example. Also, larger files > 3MB, 150 pages take 5-10 minutes to process. 
We have requirements from FDA for filing reports to them in PDFA for long term storage. 
Can you please let me know if there is a way to reliably convert to PDFA? And are there ways to improve the processing time?

Viewing all articles
Browse latest Browse all 3131

Trending Articles