Quantcast
Channel: Adobe Community : Popular Discussions - LiveCycle Designer
Viewing all articles
Browse latest Browse all 16286

Page fit to width as default on startup

$
0
0

Hello,

 

I can put the script below in a button but I want the entire pdf to fit width of window when opened. Every time I try putting the script in an event (like docReady, form:ready) that event still comes before the pdf is finished "loading" and the page zoom goes to whatever arbitrary default its set to. I tried creating a timer that goes off once docReady occurs that would execute that script, but couldn't get it to work. Thats all I could think of.

 

Any insight would be greatly appreciated. Thanks.

 

Script:

 

//Need this to execute as soon as the form is ACTUALLY ready

var

 

oDoc=event.target;

oDoc.zoomType

= zoomtype.fitW; // FitWidth

 

 

Kyle


Viewing all articles
Browse latest Browse all 16286

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>