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

PDF/A 1b conversion problems

$
0
0
Hi,
having the need to buy a pdf conversion library, I tried the current Aspose PDf library 10.4 to convert in pdf/a 1b the included files, but every file (re)converted did not pass the Acrobat validation. This happen whether I start from a non pdf labeled file or not.

In the past I tested the 9.4 version, now you are on the on the 10.4 with several pdf/a conversion fixes, but however was unable to obtain files that pass validation by Acrobat.

You stated that are using Acrobat as reference to validation results, but I do not see any acknowledge on this; maybe I am using the wrong method?

Following here the function used to convert files:

static bool ConvetToPdfA(string infile, string outfile)
{
bool result = false;

if (File.Exists(outfile))
{
File.Delete(outfile);
}
Aspose.Pdf.Document document = new Aspose.Pdf.Document(infile);
try
{
result = document.Convert(outfile + ".log.xml", Aspose.Pdf.PdfFormat.PDF_A_1B, Aspose.Pdf.ConvertErrorAction.Delete);
}
catch (Exception ex)
{
Console.Error.WriteLine("Catched exception " + ex.ToString());
}
if (result)
{
document.Save(outfile);
}
Console.Error.WriteLine( "Conversion " + (result ? "successful" : "failed") + "\n");
return result;
}

To conduct my tests I used following validators:
- Adobe Acrobat XI Professional with update 9
- Pdf-tools 3-Heights™ PDF Validator Online Tool (http://www.pdf-tools.com/pdf/validate-pdfa-online.aspx)
- PDFTron PDF/A Manager (https://www.pdftron.com/downloads/pdfa.zip)


See the attached results table and pdf files.
Can you help me?

Best regards
Carlo



Viewing all articles
Browse latest Browse all 3131

Trending Articles