cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically change Page height and width in Adobe forms

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member400468
Active Participant

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

Former Member
0 Kudos

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

former_member400468
Active Participant
0 Kudos

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

Former Member
0 Kudos

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?

former_member400468
Active Participant

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

Answers (0)