[PDF addLayout=n|name p|padding w|width t|type c|colour]

padding can be 1,2 or 4 numbers, separated by ‘,’
1 number – same padding all round
2 numbers – first number is left and right, second top and bottom
4 numbers – left, top, right and bottom padding

width is line width in points

type is i = inside lines, o = outside lines default/nil = all lines

colour is lower case names, e.g. black, grey, blue, red

[PDF addNodePara=n|para1:para2 s|style1,style2 B|page break ~n|name]

para to add need to have been created first
B| can be ‘before’ or ‘after’

[PDF addPair=l|style1,style2 L|text r|style1,style2 R|text ~n|name]

Creates a ‘no-border’ table with 2 columns which will fill the space it is added to. If no name is included it is added to the content directly.

[PDF addPara=T|text f|font size C|columns to span R|rows to span b|bold i|italics m|margins p|padding a|alignment s|style1,style2 ~B|page break O|page orientation n|name]

bold and italics either ‘on’ or ‘off’
alignment r, l, c, j
page break ‘before’ or ‘after’
page orientation ‘portrait’ (default) or ‘landscape’

padding and margins can be 1,2 or 4 numbers, separated by ‘,’
1 number – same padding/margin all round
2 numbers – first number is left and right, second top and bottom
4 numbers – left, top, right and bottom padding

Same format as addPara, but the text in T| is separated into separate paragraphs first

[PDF addStyle=s|font size C|columns to span R|rows to span b|bold i|italics m|margins p|padding a|alignment c|color ~B|page break O|page orientation n|name]

bold and italics either ‘on’ or ‘off’
alignment r, l, c, j
page break ‘before’ or ‘after’
page orientation ‘portrait’ (default) or ‘landscape’
color in lower case text e.g. black,red

padding and margins can be 1,2 or 4 numbers, separated by ‘,’
1 number – same padding/margin all round
2 numbers – first number is left and right, second top and bottom
4 numbers – left, top, right and bottom padding

[PDF checkbox=T|text b|t (ticked) or b|e (empty – default) s|style1,style2 ~n|name]

[PDF footer=T|text]

Sets the footer text, which is styled with the style named ‘footer’. Within the text %page% is the current page number %pages% total number of pages

[PDF header=T|text]

Sets the header text, which is styled with the style named ‘header’. Within the text %page% is the current page number %pages% total number of pages

[PDF image=n|image name w|width h|height s|style1,style2 ~n|name]

[PDF loadImage=n|name d|data in base64]

[PDF makeArray=n|node1:node2:node3 ~n|name]

Makes an array of individual nodes, used for building tables etc

PDF makeNodeTable=n|bodyNode w|width k|keep together h|headerRows s|style1,style2 l|layout C|colSpan R|rowSpan ~o|textOrientation B|PageBreak O|pageOrientation n|name]

bodyNode – array of node items
widths – column widths, an be a number, * or auto. List is comma separated e.g. 100,*,auto,*
k|yes to keep together, default no.
h|2 – number of header rows
C| and R| for table within table
B|before or B|after
O|portrait or O|landscape

[PDF makeStack=n|node1:node2:node3 s|style1,style2 C|colSpan R|rowSpan ~n|name]

adds style and span information to a collection of nodes

[PDF makeTable=v|vector f|field1:field2 w|widths k|keep together h|headerRows s|style1,style2 l|layout]

Displays a database as a table, showing fields in f|
k|yes or no(default)
h|2 number of header rows

[PDF open]

Displays PDF

[PDF start=s|size o|orientation m|margins]

Initialises a new PDF

Page size can be:
‘4A0’, ‘2A0’, ‘A0’, ‘A1’, ‘A2’, ‘A3’, ‘A4’, ‘A5’, ‘A6’, ‘A7’, ‘A8’, ‘A9’, ‘A10’,
‘B0’, ‘B1’, ‘B2’, ‘B3’, ‘B4’, ‘B5’, ‘B6’, ‘B7’, ‘B8’, ‘B9’, ‘B10’,
‘C0’, ‘C1’, ‘C2’, ‘C3’, ‘C4’, ‘C5’, ‘C6’, ‘C7’, ‘C8’, ‘C9’, ‘C10’,
‘RA0’, ‘RA1’, ‘RA2’, ‘RA3’, ‘RA4’,
‘SRA0’, ‘SRA1’, ‘SRA2’, ‘SRA3’, ‘SRA4’,
‘EXECUTIVE’, ‘FOLIO’, ‘LEGAL’, ‘LETTER’, ‘TABLOID’

Page orientation is portriat by deafault, but can be set o|landscape if required

margins can be 1,2 or 4 numbers, separated by ‘,’
1 number – same margin all round
2 numbers – first number is left and right, second top and bottom
4 numbers – left, top, right and bottom padding