Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

Fit to page script

vigneshs5397046
Level 2
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
vigneshs5397046
Level 2
Level 2

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

radzmar
Level 10
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.

vigneshs5397046
Level 2
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.

radzmar
Level 10
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};