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

Problem to change the master page height using javascript

Avatar

22-12-2008

Hi everyone,



I've been trying it but no luck... appreciate any helps possible.. Thanks!



I've a masterpage called 'UILayout':

Long(Height)=100mm, Short(Width)=100mm



I've a button click event with the script to set the Long to 160mm:

====================================

//display current height

var curHeight = xfa.form.form1.pageSet.UILayout.medium["long"];

xfa.host.messageBox("Current Height = " + curHeight);

//set height to 160mm

xfa.form.form1.pageSet.UILayout.medium["long"]="160mm";

//relayout the pageArea

xfa.layout.relayoutPageArea(0);

====================================

Doesn't work, I wrote another button click event to retrieve the height, and it returned 160mm. But the layout just doesn't refresh with the changed height....i'm using LC Designer 8.2, form saved as Dynamic XML PDF , compability set to 7.0.5, view in Acrobat Pro 7.1. Thanks...

Replies

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

23-12-2008

I do not think you will be able to adjust the Master page size as it is tied to the Content Area size as well. I tried to adjust the pageisze and the content size but it was ignored. I can get at the properties to change them but that is it.