Main rendering interface
Currently only CPDF_Adapter and PDFLib_Adapter implement this interface.
Implementations should measure x and y increasing to the left and down, respectively, with the origin in the top left corner. Implementations are free to use a unit other than points for length, but I can't guarantee that the results will look any good.
Located in /include/canvas.cls.php (line 55)
Draws a circle at x,y with radius $r1
See Style::munge_colour() for the format of the colour array. See Cpdf::setLineStyle() for a description of the $style parameter (aka dash)
Draws a filled rectangle at x1,y1 with width w and height h
See Style::munge_colour() for the format of the colour array.
Calculates font height, in points
Returns the total number of pages
Returns the current page number
Calculates text size, in points
Add an image to the pdf.
The image is placed at the specified x and y coordinates with the given width and height.
Draws a line from x1,y1 to x2,y2
See Style::munge_colour() for the format of the colour array. See Cpdf::setLineStyle() for a description of the format of the $style parameter (aka dash).
Starts a new page
Subsequent drawing operations will appear on the new page.
Returns the PDF as a string
Draws a polygon
The polygon is formed by joining all the points stored in the $points array. $points has the following structure:
- array(0 => x1,
- 1 => y1,
- ...
- );
See Style::munge_colour() for the format of the colour array. See Cpdf::setLineStyle() for a description of the $style parameter (aka dash)
Draws a rectangle at x1,y1 with width w and height h
See Style::munge_colour() for the format of the colour array. See Cpdf::setLineStyle() for a description of the $style parameter (aka dash)
Sets the total number of pages
Streams the PDF directly to the browser
Writes text at the specified x and y coordinates
See Style::munge_colour() for the format of the colour array.
Documentation generated on Fri, 04 Mar 2005 13:31:16 -0700 by phpDocumentor 1.3.0RC3