Image_Canvas_PDF Image_Canvas_PDF(
array
$param)
|
|
Create the PDF canvas.
Parameters available:
'page' Specify the page/paper format for the graph's page, available formats are: A0, A1, A2, A3, A4, A5, A6, B5, letter, legal, ledger, 11x17, cd_front, inlay, inlay_nosides
'align' Alignment of the graph on the page, available options are: topleft, topcenter, topright, leftcenter, center, rightcenter, leftbottom, centerbottom, rightbottom
'orientation' Specifies the paper orientation, default is 'portrait' and 'landscape' is also supported.
'creator' The creator tag of the PDF/graph
'author' The author tag of the PDF/graph
'title' The title tag of the PDF/graph
'width' The width of the graph on the page
'height' The height of the graph on the page
'left' The left offset of the graph on the page
'top' The top offset of the graph on the page
'filename' The PDF file to open/add page to, using 'filename' requires the commercial version of PDFlib (http://www.pdflib.com/), this has for obvious ($ 450) reasons not been tested
'pdf' An existing PDFlib PDF document to add the page to
'add_page' (true/false) Used together with 'pdf', to specify whether the canvas should add a new graph page (true) or create the graph on the current page (false), default is 'true'
The 'page' and 'width' & 'height' can be mutually omitted, if 'page' is omitted the page is created using dimensions of width x height, and if width and height are omitted the page dimensions are used for the graph.
If 'pdf' is specified, 'filename', 'creator', 'author' and 'title' has no effect.
'left' and 'top' are overridden by 'align'
It is required either to specify 'width' & 'height' or 'page'.
The PDF format/PDFlib has some limitations on the capabilities, which means some functionality available using other canvass (fx. alpha blending and gradient fills) are not supported with PDF (see Canvas.txt in the docs/ folder for further details)
Parameters: