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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Setup View Magnification

Thread ID:

Created:

Updated:

Platform:

Replies:

99673 Jun 3,2011 08:08 AM UTC Jun 7,2011 05:46 AM UTC Silverlight 3
loading
Tags: PDF
Jani Giannoudis
Asked On June 3, 2011 08:08 AM UTC

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


Geetha M [Syncfusion]
Replied On 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


Jani Giannoudis
Replied On June 6, 2011 08:25 AM UTC

Hi Geetha

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

Cheers,
Jani


Geetha M [Syncfusion]
Replied On 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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;