Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

zoom to fit width


Level 2
I am dealing with a document that has 3 different masterpages all of different sizes. Yes this is necessary as it turns out. My problem is that when navigating from one page to another, the page that is navigated to does not fill the screen the way I need it to. I'm looking for a JavaScript that will work in LiveCycle in the same fashion that -

this.zoomType = zoomtype.fitW;

- works in Acrobat. Is there a script that will allow my pages to "fit to width" in LiveCycle when navigating from one to another?

Thank you.
1 Reply


Former Community Member
On the enter event of each page use this command:

event.target.zoomType = zoomtype.fitW;