Hi Support,
We intermittently we are seeing this exception when trying to open the print dialog like this:
Dim viewer = New PdfViewerControl()
viewer.ReferencePath = $"{AppDomain.CurrentDomain.BaseDirectory}\BuildTools\"
viewer.RenderingEngine = PdfRenderingEngine.Pdfium
viewer.Load(path)
viewer.print(True)
Sometimes we see this error:
Message: Wrong block length.
Stack trace: at Syncfusion.Compression.CompressedStreamReader.DecodeBlockHeader()
at Syncfusion.Compression.CompressedStreamReader..ctor(Stream stream, Boolean bNoWrap)
at Syncfusion.Pdf.Compression.PdfZlibCompressor.Decompress(Stream inputStream)
at Syncfusion.Pdf.Compression.PdfZlibCompressor.Decompress(Byte[] data)
at Syncfusion.Pdf.Primitives.PdfStream.Decompress(Byte[] data, String filter)
at Syncfusion.Pdf.Primitives.PdfStream.Decompress()
at Syncfusion.Windows.PdfViewer.PrintPage..ctor(PdfPageBase page)
at Syncfusion.Windows.PdfViewer.DocumentView.LoadPrintPages()
at Syncfusion.Windows.PdfViewer.DocumentView.get_PrintingDocument()
at Syncfusion.Windows.PdfViewer.DocumentToolbar.Print()
at Syncfusion.Windows.PdfViewer.PdfViewerControl.Print(Boolean showPrintDialog)
Unfortunately I cannot share the PDF file for security reasons, but I may be able to find out more information about it.
Thank you