cancel
Showing results for 
Search instead for 
Did you mean: 

Zoom Level

Former Member

Hi

Is it possible to programmatically set the zoom level of an interactive form?

I guess it can be done using javascript.

Thank you for your help

regards

Yuval

Accepted Solutions (1)

Accepted Solutions (1)

chintan_virani
Active Contributor
0 Kudos

Did you resolve this?

Former Member
0 Kudos

Hi,

Sorry I did not respond any sooner .

Unfortunately I was extremely busy and had not had the time to check your code,

I will however do it next week as soon as I have more time.

Regards

Yuval

Former Member
0 Kudos

HI Chintan

Unfortunately there is not method zoom after "element.target".

Strange, isn't ?

regards

yuval

chintan_virani
Active Contributor
0 Kudos

Please check my code and just implement it. Don't worry about code completion in the editor.

Also it is event.target and not element.target as you are mentioning.

Former Member
0 Kudos

Hi Chintan

1. Sorry for the misspelling. It is as you say event.target.zoom.

2. Strangeely code completion does not mention such a method.

3. Still the code does not work. The plugin acts strangely as each time it opens the document with a different zoom level

4. I put the code on the highest level under the method "docReady"

regards

yuval

Former Member
0 Kudos

Hi Yuval,

I have done the sample file find it from the below link

http://www.mediafire.com/?yjdlprbyi92qz

You can see the zoom event working and the difference when the script is executed.

If you want to check the scrip just import this PDF into ADLC.

Cheers,

Sai

Answers (1)

Answers (1)

chintan_virani
Active Contributor
0 Kudos

Write the following JavaScript code in the docReady event of the Top Level Main Subform

event.target.zoom = 50;   // To set Zoom to 50%