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

PDF to PDF/A fails

$
0
0
Hi,

We are using your product for pdf to pdfa conversion.
One document (attached) causes crash: system hangs up and then throws OutOfMemoryException.

Below is a code we use for conversion:

var license = new Aspose.Pdf.License();
license.SetLicense("Aspose.Total.lic");
license.Embedded = true;

using (var inputDocument = new Aspose.Pdf.Document(inputFilePath))
{
  foreach (Aspose.Pdf.Page page in inputDocument.Pages)
  {
    page.Rotate = Aspose.Pdf.Rotation.None;
  }

  inputDocument.Convert(new MemoryStream(), Aspose.Pdf.PdfFormat.PDF_A_1B, Aspose.Pdf.ConvertErrorAction.Delete);
  inputDocument.Save(outputFilePath);
}


If we change PdfFormat to Aspose.Pdf.PdfFormat.v_1_5 conversion works fine.

Thanks.

PS. Aspose.Pdf.dll 9.7.0.0 is used.

Viewing all articles
Browse latest Browse all 3131

Trending Articles