Page |
Top Previous Next |
Page size (numeric) : is a page format reference as in XBPDEV.CH. The page size defaults to XBPPRN_FORMAT_LETTER, valid page sizes are :
Orientation (numeric) : is the page orientation, portrait or landscape, and defaults to XBPPRN_ORIENT_PORTRAIT.
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.
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.
User size (array) : is a two element array that specifies page dimensions, first element is horizontal size, and second element is vertical size. This parameter is only used for page size XBPPRN_FORMAT_USER, and the measures should be in 1/72 inches. A page with 3 x 5 inches should be informed as { 216, 360 }.
Coordinate system (numeric): the coordinates system specifies the type of coordinates (line, column) passed to the class, they can be :
left margin (numeric) : left margin for the document, default is one character.
top margin (numeric) : top margin for the document, default is one line.
Examples : oPdf:NewPage( XBPPRN_FORMAT_A4 ) will create a page in the A4 format, oriented portrait, with 66 lines and 80 columns, using line/column coordinate system. oPdf:NewPage( XBPPRN_FORMAT_LETTER, , 660, 800 ) will create portrait oriented page, letter size, with standard line/column coordinate system, but with 660 lines per page and 800 characters per line, creating a smaller line/character feed, that could provide better precision in positioning elements on the page. oPdf:NewPage( XBPPRN_FORMAT_LETTER, , , , 3 ) this page will have letter size, but will be using HIMETRIC coordinate system. oPdf:NewPage( XBPPRN_FORMAT_USER, , 30, 70, { 504, 360 }) this page will be sized at 5 x 7 inches providing 30 lines with 70 characters in each line, notice that the horizontal dimension (504) is larger that the vertical (360), indicating that the paper will be at a landscape position.
|