We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

C# PDF to PDF_A_1A conversion results in System.NullReferenceException

Hi,



I am working at a bank in the Netherlands and i am trying to convert a PDF file to PDF_A_1A but Aspose.PDF throws me a NullReference exception.

Can you help me out?



Aspose.PDF version:

10.7.0.0



Code:

convertedDoc = new Pdf.Document(@“DocumentToConvert.pdf”);

convertedDoc.Convert(File.Open(@“conversionLog.xml”, FileMode.Create),Pdf.PdfFormat.PDF_A_1A, Pdf.ConvertErrorAction.Delete);



StackTrace:

System.NullReferenceException bij — .˜ . (Page , OperatorCollection , Resources , Int32 , ™ )

bij — .˜ . ()

bij — .˜ . † ()

bij — .[1].‹‹

________________________________________

()

bij — .˜ .Process(XmlTextWriter , PdfFormat , Document , Boolean , ConvertErrorAction )

bij Aspose.Pdf.Document.Convert(XmlTextWriter , PdfFormat , Boolean , ConvertErrorAction )

bij Aspose.Pdf.Document.Convert(Stream outputLogStream, PdfFormat format, ConvertErrorAction action)



Testfile:

Attached. (file is anomimyzed)



Regards,

Stephan Tuinder

Hi Stephan,


Thanks for contacting support.

I have tested the scenario using latest release of Aspose.Pdf for .NET 10.8.0 and have observed that conversion process hangs during conversion. For the sake of correction, I have logged this problem
as PDFNEWNET-39462 in our issue tracking system. We will
further look into the details of this problem and will keep you updated on the
status of correction. Please be patient and spare us little time. We are sorry
for this inconvenience.