How do I set 100% zoom magnification in PDF?

51 views
Skip to first unread message

Support

unread,
Sep 6, 2014, 12:37:55 AM9/6/14
to pdfne...@googlegroups.com
Q:

How do I set 100% zoom magnification in PDF?
Basically what I need is that a PDF viewer opens my document at 100% zoom magnification.

----------------

A:

You can tell the viewer to set the zoom to 100% default by setting document’s ‘OpenAction’:


 doc.SetOpenAction(Action.CreateGoto(Destination.CreateXYZ(doc.GetPage(1), 0, 0, 1)));

The last parameter in CreateXYZ is the zoom factor (in rage 0..1). For more info please refer to PDFNet API Ref.
Reply all
Reply to author
Forward
0 new messages