InvalidOperationException "Stack empty" loading PDF File

1 Answer 29 Views
PdfViewer and PdfViewerNavigator
Adrian
Top achievements
Rank 1
Adrian asked on 04 Feb 2025, 08:17 PM | edited on 04 Feb 2025, 08:58 PM

¡Hi everyone! I have this issue loading a pdf with the RadPdfViewer.
On the RadPdfViewer DataError event i got an InvalidOperationException with only the "Stack empty" messsage,

 

This is the stacktrace of the exception thown by the PdfExceptionEventArgs

   at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
   at System.Collections.Generic.Stack`1.Pop()
   at Telerik.Windows.Pdf.Documents.Fixed.FormatProviders.Old.Pdf.DocumentModel.PdfContext.RestoreGraphicState()
   at Telerik.Windows.Pdf.Documents.Fixed.FormatProviders.Old.Pdf.PdfReader.Parsers.ContentStreamParser.InvokeGeneralGraphicsStateOperator(String op, Object[] pars)
   at Telerik.Windows.Pdf.Documents.Fixed.FormatProviders.Old.Pdf.PdfReader.Parsers.ContentStreamParser.InvokeOperator(String op, Object[] pars)

Can you please tell me what could be the possible reason of this issue ? Thanks

PS. The file is on the zip attached

1 Answer, 1 is accepted

Sort by
0
Nadya | Tech Support Engineer
Telerik team
answered on 05 Feb 2025, 08:24 PM

Hello, Adrian,

The provided document is greatly appreciated. I was able to test it locally. The document loads correct on my side, no errors occur. You can see the document loaded in RadPdfViewer in the attached picture.

Can you please specify which is the exact Telerik version that you use? I am testing with the latest version (2024.4.1113.48) and no problems observed. If you are using an older version, I recommend downloading the latest version and test with it.

Please let me know if there are any further issues.

Regards,
Nadya | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
PdfViewer and PdfViewerNavigator
Asked by
Adrian
Top achievements
Rank 1
Answers by
Nadya | Tech Support Engineer
Telerik team
Share this question
or