We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Setup View Magnification

Hi

Is it possible the set the viewer magnification to fit the page width?

Acrobat option: File > Document Properties > Initial View > Document Options > Magnification

Cheers
Jani


3 Replies

GM Geetha M Syncfusion Team June 6, 2011 05:11 AM UTC

Hi Jani,

Thank you for your interest in Syncfusion products.

It is not possible to set the viewer magnification at DocumentProperties. But you can view the document to FitPage using the following JavaScriptAction set to document:

PdfJavaScriptAction action = new PdfJavaScriptAction("this.zoomType = zoomtype.fitP;");
document.Actions.AfterOpen = action;

Please note that this does not change the viewer magnifiction at DocumentProperties.

Please let me know if you have any questions.

Regards,
Geetha



JG Jani Giannoudis June 6, 2011 08:25 AM UTC

Hi Geetha

Unfortunately JavaScript is - for security reasons - not an alternative.

Cheers,
Jani



GM Geetha M Syncfusion Team June 7, 2011 05:46 AM UTC

Hi Jani,

Thank you for the update.

Currently it is not possible to set viewer magnification without using DocumentOpenAction.

Please let me know if you have any questions.

Regards,
Geetha


Loader.
Live Chat Icon For mobile
Up arrow icon