Skip to Content
0

Dynamically change Page height and width in Adobe forms

May 29, 2017 at 05:10 PM

234

avatar image

Hello Gurus,

This is the situation with my client. I need to develop ONE HRFORM for both the Payroll Cheque and Pay Statement.

Contents of the Form. It has three parts.

  • Address
  • Cheque
  • Pay Statement

In case we run the form for Payroll cheque it should display Address + Cheque + ONLY Summary of Pay Statement. So, in this case, the length and width of the Pay statement part are less.

In case we run the form for Pay Statement, the should only display the Pay statement (not the Address and Cheque) but in a full format. So here, the length and width are double that of the payroll cheque display

Hence, what I need is a way to dynamically change the Length and width of THE PAGE (not just a subform in the content area of a page) according to the situation in which it is run.

Thank you

Kriba

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Evgeny Gubenko May 30, 2017 at 06:48 AM
1

Hi!

The simplest way - create several pages with different formats and hide unwanted pages depending on contents to be displayed.

You can also try to change the format of all elements, but it's more difficult and it's hard to customize in future.

Hope it's helpful

Evgeny

Show 4 Share
10 |10000 characters needed characters left characters exceeded

Hey Evgeny,

Thank you for your answer and yes that's exactly what we are going for right now as a backup plan. But is there any way to change the Page height and width dynamically at run time? Changing a subform or an element is easy using scripting but if I want to change the Page height itself, how do I do it? Is it even possible?

Kriba

0

I think yes, the Page is similar to subfrom, so you can try. But it's better to hide pages, because the script will be simpler than one changing the whole layout, and it will work faster IMHO

Evgeny

0

Well, thats where the problem lies. We cannot create scripts for a Page. For a subform, text area, text element, etc, yes! But not for a Page. So I am not able to change the height and width. Is there any other way to do it?

0

You can't create scripts for Master pages and content areas, but for Page you can do this:

capture.png (4.6 kB)
1