PdfViewer speed of showing

2 posts, 0 answers
  1. Den Duze
    Den Duze avatar
    18 posts
    Member since:
    Nov 2014

    Posted 02 Feb 2017 Link to this post

    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??



  2. Hristo
    Hristo avatar
    1522 posts

    Posted 02 Feb 2017 Link to this post

    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.

    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.
Back to Top