This is a migrated thread and some comments may be shown as answers.

PdfViewer speed of showing

1 Answer 147 Views
PdfViewer and PdfViewerNavigator
This is a migrated thread and some comments may be shown as answers.
Den Duze
Top achievements
Rank 1
Den Duze asked on 02 Feb 2017, 09:48 AM

What can be the reason that some pdf (less size and less pages) loads much slower than others.
I'm using a FileStream to open the pdf and then I copy the FileStream to a MemoryStream and I LoadDocument with this MemoryStream.

I have a pdf ==> 1272 kb that exists of 41 pages
I have a pdf ==> 46 kb that exists of 1 page
But the pdf of 1272 kb is much quicker shown in the PdfViewer then the one from 46 kb?
What can be the reason of this??

Thanks

Didier

1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 02 Feb 2017, 01:24 PM
Hi Didier,

Thank you for writing.

PDF format provides a big variety of compressions allowing the file producer to maximally optimize the result file size. The explanation for the slow rendering of PDF files is highly dependent on the concrete case. We have seen examples of files with really big monochrome images which are compressed with BitsPerComponent equal to 1 allowing to reduce the file size a lot. Slow rendering with minimal file size may also be seen when the PDF file uses vector content that may be described with a few postscript text rows but this content requires intensive calculations when rendered in a PDF viewer (for example some pattern PDF content). 

If you want us to have a deeper look at the concrete case you are mentioning, you may send us the sample PDF files. 

I hope this helps. Should you have further questions please do not hesitate to write back.

Regards,
Hristo
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
PdfViewer and PdfViewerNavigator
Asked by
Den Duze
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or