IMPORTANT ANNOUNCEMENT

These forums were permanently set to read-only mode on July 20, 2022. From that day onwards, no new posting or comment is allowed on the site, but the historical content remains intact and searchable.

A new location for posting questions about PlanetPress Suite is now available:

OL Learn - PlanetPress Classic (opens in new tab)

Topic Options
#39545 - 05/11/12 12:14 PM Increasing entire form's size
wojciechm Offline
OL User

Registered: 10/14/11
Posts: 75
Hi,
I have a form in letter rotated that I would like to increase to either legal or 11x17. Is it possible to do proportional changes on all the elements of the form or do I have to increase everything one by one? Thanks

Top
#39553 - 05/14/12 09:42 AM Re: Increasing entire form's size [Re: wojciechm]
Raphael Lalonde Lefebvre Offline
OL Expert

Registered: 10/14/05
Posts: 4956
Loc: Objectif Lune Montreal
wojciechm,

If you just resize the page, it will not automatically resize the objects on it, you will have to change them manually.

If you wanted, however, at the creation time of your objects, you could use the variables &current.pagewidth and &current.pageheigth as part of the object's width and height, and use some math to calculate a value proportional to the page's size.

For example, if you create a box, and use this for it's width and height:

Width: =(&current.pagewidth / 2)
Height: =(&current.pageheight / 2)

It will create a box with a size that is half your page's size. Then, if you make your page 11x17, it will enlarge the box proportionally.

Of course, this has to be done at the time that you're creating the objects, and you have to design your entire form around this. Also, it will make the object unmovable and unscalable using the mouse, so you will have to manually enter the coordinates where you want your box to be. I would recommend that you place the box at the appropriate place before using such code.


You may or may not actually need or want to do this, but I thought I'd mention it, since it's related, and if you're going to dynamically change the page size in your current project, this may be something you'd be interested to know.

Regards,
Raphaël Lalonde Lefebvre

Top
#39555 - 05/14/12 10:36 AM Re: Increasing entire form's size [Re: Raphael Lalonde Lefebvre]
wojciechm Offline
OL User

Registered: 10/14/11
Posts: 75
For the future forms I can definitely use this but to redo this one we can't wait it is in production. Thanks anyway

Top
#39572 - 05/15/12 05:16 AM Re: Increasing entire form's size [Re: wojciechm]
stuartg Offline
OL Expert

Registered: 03/06/03
Posts: 713
Loc: Swindon, England
Depending on your exact requirements you may be able to use the scale command to uniformly expand everything on the page.
scale(1.3,1.3)
will expand a letter page (8.5x11) to (11x17)
Put the command in presstalk before the page.

Top