Macro Language Reference > Macros > Page > tpsize
  
tpsize
Description
Changes the size and/or orientation of the current page, layer or pasteboard.
* 
A useful point to make here is that the size of a page can be altered by adding a layer of a different size to that page. If a layer has been applied to the page and is selected before running tpsize, the macro will resize the selected layer rather than the whole page. If no layer has been selected tpsize will only resize the base layer, i.e. the whole page.
 
Example 181. Define an A4 landscape page
Both of the macros shown below define a landscape A4 page, despite the fact that the position of the width and height values are reversed:
tpsize "l", 297, 210
tpsize "l", 210, 297
Syntax
tpsize port_lands_opt:s? width:uh? ( height:uv ) ?macro:b?
tpsize
[no parameter]
Invoke the Page Size dialog box.
port_lands_opt
p
Switch to portrait orientation
l
Switch to landscape orientation
u
Choose most suitable orientation depending on values defined in width and height
width
Page width
* 
If the specified sizes for width and height are the wrong way round for the selected orientation they will be automatically reversed, unless the u option is used in port_lands_opt.
height
Page height
* 
If the specified sizes for width and height are the wrong way round for the selected orientation they will be automatically reversed, unless the u option is used in port_lands_opt.
?macro
Used internally by PTC ALD to pass current page size information to a wmn macro.
Related Links