×
Menu
Index

Size

 
 
  • Size( [lines], [columns], [nCScale], [nScale] ) => Changes the lines and/or columns measures specified in the NewPage().
 
Lines (numeric) : is the number of lines in the page, this number is related to the chosen coordinate system (see bellow). Default is 66 lines per page. Changing this number will alter the distance between lines, fitting more or less lines in a page.
 
Columns (numeric) : the number of character columns in each line, this number is also related to the coordinate system. Default is 80 characters per line. Changing this number will alter the distance between characters, fitting more or less characters in a line. The character size will not change, if you want to change the character size you must use the Font() method, changing the font size and/or the scale of the font.
 
nCScale (numeric) : Scales the number of columns in each line, default is 100% (no scaling). Changing this number will alter the distance between characters, fitting more or less characters in a line. The character size will not change, if you want to change the character size you must use the nScale parameter (4th) of this call, or the Font() method, changing the font size and/or the scale of the font. This will also affect the Lines(), Boxes() and all other methods that use coordinates to draw on the page.
 
nScale (numeric) : Scales the text, default is 100% (no scaling). Changing this number will alter the size of the characters, fitting more or less characters in a line.
 
Examples :   oPdf:Size( 66, 120 ) will change the measurements to 66 lines per page and 120 columns, using line/column coordinate system.
oPdf:Size( 66, 80, 75 ) will change the coordinates system, resulting in an image 75% of the original width.