setFitmode not working

80 views
Skip to first unread message

Kai Brümmer

unread,
Oct 16, 2014, 6:00:49 AM10/16/14
to pdfnet-w...@googlegroups.com
Dear all,

I try to set the FitMode within config.js.

This is my code:

$(document).bind("documentLoaded", function(event) {
        readerControl.docViewer.SetFitMode('fitPage');
});

But I get following error (same error, if I use 'FitPage' instead):

CoreControls.js (line 791, col 57)


CoreContol.js is VERSION="1.5.2"

Thank you for your help.

Regards Kai

Matt Parizeau

unread,
Oct 16, 2014, 2:47:29 PM10/16/14
to pdfnet-w...@googlegroups.com
Hi Kai,

For setting the fit mode you'll want to use the fit mode property like this:
readerControl.docViewer.SetFitMode(readerControl.docViewer.FitMode.FitPage);

Matt Parizeau
Software Developer
PDFTron Systems Inc.

Kai Brümmer

unread,
Oct 17, 2014, 1:39:54 AM10/17/14
to pdfnet-w...@googlegroups.com
Thank you Matt, it worked like this. :-)
Reply all
Reply to author
Forward
0 new messages