Re: WebViewer FitPage

23 views
Skip to first unread message

Support

unread,
Apr 8, 2013, 1:50:39 PM4/8/13
to pdfne...@googlegroups.com
 
Could you please post WebViewer questions to  https://groups.google.com/forum/#!forum/pdfnet-webviewer.
This focus of this forum/KB is primarily on PDFNet SDK.  Thx!
 

On Wednesday, April 3, 2013 1:51:31 AM UTC-7, Simon Scheldeman wrote:
I want the WebViewer to fit to the page when the WebViewer loads the PDF.

This is how I try do do this :


        $(function() {
                var viewerElement = document.getElementById('viewer');
                var myWebViewer = new PDFTron.WebViewer({
                        initialDoc : "ConvertAndStream.jsp?file=417974C3.pdf",
                        streaming : true
                }, viewerElement);
                myWebViewer.fitPage();
        });

Problem is that the Webviewer doesn't fit to the page. Does someone know what I am doing wrong?

Reply all
Reply to author
Forward
0 new messages