Free Support Forum - aspose.com

PDF 3D Annotation and Movie Annotation causes exceptions

Hello, there seems to be some issue while processing pdf annotation in documents that have 3D Annotation and movie annotation.

For ex:
    foreach (Page page in PdfDocument.Pages)
    {
          try
         {
             foreach (Annotation annotation in page.Annotations) // Throws exception.
            {

System.NullReferenceException: Object reference not set to an instance of an object.
at Aspose.Pdf.Annotations.PDF3DView…ctor(    , Document , PDF3DArtwork , Boolean )
at Aspose.Pdf.Annotations.PDF3DArtwork…ctor(    , Document , PDF3DAnnotation )
at Aspose.Pdf.Annotations.PDF3DAnnotation…ctor(    , Document )
at Aspose.Pdf.Annotations.Annotation.(    , Page )
at Aspose.Pdf.Annotations.AnnotationCollection.…ctor(List`1 , Page )
at Aspose.Pdf.Annotations.AnnotationCollection.GetEnumerator()

This happens for documents having 3D Annotation and Movie Annoataion:
PDF3D_new.pdf (91.7 KB)

@dcdeveloper

Thank you for contacting support.

I have worked with the data shared by you and have been able to reproduce the issue in our environment. A ticket with ID PDFNET-44345 has been logged in our issue management system for further investigation and resolution. The issue ID has been linked with this thread so that you will receive notification as soon as the issue is resolved.

We are sorry for the inconvenience.

Any update on this issue? We are also facing the same issue

@coolwolverine

Thank you for contacting support.

The ticket PDFNET-44345 is currently pending for investigations owing to previously logged and critical issues. Moreover, would you please share sample documents along with the code snippet so that we may investigate your scenario accordingly.