Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Fit to page script

Avatar

Level 2

Hi,

I am new to LiveCycle Designer.

I need a fit to page script for my document and the following script "this.zoomType = zoomtype.fitP;" which I used in the acrobat pro on the "page properties" in the first page of my document.

I know this will not work for the LiveCycle Designer application.

Can you provide the script for LiveCycle Designer??

5 Replies

Avatar

Level 2

Where should I paste that JavaScript code in the main form or somewhere else?

Avatar

Level 10

Whereever you need it: As stated in the blog, you can add the script add the script to a buttons click event or the docReady event of any other form object.

Avatar

Level 2

The windows of acrobat minimized with layout panels opened and when I maximize the acrobat window page is not fit to the window.

Avatar

Level 10

Sorry, but I'm not good at oracles. When you don't provide any information of you scriptings, applications etc. noone can help you.

To fit the page you just need this line of code.

event.target.viewState = {pageViewZoomType:1};