cancel
Showing results for 
Search instead for 
Did you mean: 

How to control the view % of pdf in browser

Former Member
0 Kudos

Guys,

I need to make the pdf 80% viewable in browser, how to do it using scripts

Thanks,

Manish

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Manish,

use following javaScript:

var myDoc = event.target;
myDoc.zoom = 80;

Regards

Michal

Former Member
0 Kudos

Thanks Michal.

This code is working and I have inserted this code in docReady event .

Thanks again

Manish

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Manish,

You'll certainly find this kind of answers in <a href="http://partners.adobe.com/public/developer/pdf/topic_js.html">the Adobe JavaScript Reference</a> (page 230 and following).

Best regards,

Francois

Former Member
0 Kudos

Hi Francois

Thanks for reply ,

the document which you suggested ,states the method called

<i><b>this.zoom ,</b></i> but it doesn't work , do you know any other options

Thanks,

Manish