WebViewer HttpPartRetriever XOD parts size

83 views
Skip to first unread message

Michael Dudek

unread,
Apr 24, 2014, 11:15:52 AM4/24/14
to pdfnet-w...@googlegroups.com
Hi,
I have just tried your webviewer component and I found that it downloads around 110kb part when document is loaded using LoadAsync() method. Im using HttpPartRetriever. I have compared it to the silverlight viewer and it downloads only parts in sum 25kb. What is the difference?


Thanks for info
Michael

Matt Parizeau

unread,
Apr 24, 2014, 6:19:11 PM4/24/14
to pdfnet-w...@googlegroups.com
Hi Michael,

My guess is that this has to do with the HTML5 viewer doing more prerendering of content than the Silverlight viewer so it has to download more parts of the document. The HTML5 viewer can preload several pages in advance so that the pages are ready when the user actually scrolls there.

Matt Parizeau
Software Developer
PDFTron Systems Inc.

Michael Dudek

unread,
Apr 25, 2014, 1:50:10 AM4/25/14
to pdfnet-w...@googlegroups.com
Hi Matt,
thanks, this approach is fine, but if I have an mobile application, I would need to download only data for current page and avoid huge download. Is it possible to configure viewer to disable this prerendering?
I have tried to use following code without success:

                exports.CoreControls.SetCachingLevel(0);
                exports.CoreControls.SetPreRenderLevel(0);

Thanks
Michael

Matt Parizeau

unread,
Apr 25, 2014, 11:42:16 AM4/25/14
to pdfnet-w...@googlegroups.com
Hi Michael,

The mobile viewer is only rendering two pages ahead and two pages behind in landscape (when two pages are shown on the screen at the same time) and one page ahead and behind in portrait so there isn't going to be a huge download. This is to improve the user experience so that when swiping to adjacent pages they will already be rendered or be in the process of being rendered and because you can also peek ahead to the next/previous page by holding your finger down and panning.

Matt Parizeau
Software Developer
PDFTron Systems Inc.
Reply all
Reply to author
Forward
0 new messages