Zend_Pdf_PagePDF Page
Located in /library/Zend/Pdf/Page.php (line 64)
void
clipCircle
(float $x, float $y, float $radius, [float $startAngle = null], [float $endAngle = null])
void
clipEllipse
(float $x1, float $y1, float $x2, float $y2, [float $startAngle = null], [float $endAngle = null])
void
clipPolygon
(array $x, array $y, [integer $fillMethod = Zend_Pdf_Const::FILLMETHOD_NONZEROWINDING])
void
drawCircle
(float $x, float $y, float $radius, [mixed $param4 = null], [mixed $param5 = null], [mixed $param6 = null])
void
drawEllipse
(float $x1, float $y1, float $x2, float $y2, [mixed $param5 = null], [mixed $param6 = null], [mixed $param7 = null])
void
drawPolygon
(array $x, array $y, [integer $fillType = Zend_Pdf_Const::SHAPEDRAW_FILLNSTROKE], [integer $fillMethod = Zend_Pdf_Const::FILLMETHOD_NONZEROWINDING])
void
drawRectangle
(float $x1, float $y1, float $x2, float $y2, [integer $fillType = Zend_Pdf_Const::SHAPEDRAW_FILLNSTROKE])
Constructor __construct (line 163)
Object constructor.
Constructor signatures:
2. Clone PDF page. New page is created in the same context as source page. Object factory is shared. Thus it will be attached to the document, but need to be placed into Zend_Pdf::$pages array to be included into output. --------------------------------------------------------- new Zend_Pdf_Page(Zend_Pdf_Page $page); ---------------------------------------------------------
3. Create new page with a specified pagesize. If $factory is null then it will be created and page must be attached to the document to be included into output. --------------------------------------------------------- new Zend_Pdf_Page(string $pagesize, Zend_Pdf_ElementFactory $factory = null); ---------------------------------------------------------
4. Create new page with a specified pagesize (in default user space units). If $factory is null then it will be created and page must be attached to the document to be included into output. --------------------------------------------------------- new Zend_Pdf_Page(numeric $width, numeric $height, Zend_Pdf_ElementFactory $factory = null); ---------------------------------------------------------
clipCircle (line 538)
Intersect current clipping area with a circle.
clipEllipse (line 561)
Intersect current clipping area with a polygon.
Method signatures: drawEllipse($x1, $y1, $x2, $y2); drawEllipse($x1, $y1, $x2, $y2, $startAngle, $endAngle);
clipPolygon (line 641)
Intersect current clipping area with a polygon.
clipRectangle (line 676)
Intersect current clipping area with a rectangle.
drawCircle (line 726)
Draw a circle centered on x, y with a radius of radius.
Method signatures: drawCircle($x, $y, $radius); drawCircle($x, $y, $radius, $fillType); drawCircle($x, $y, $radius, $startAngle, $endAngle); drawCircle($x, $y, $radius, $startAngle, $endAngle, $fillType);
It's not a really circle, because PDF supports only cubic Bezier curves. But _very_ good approximation. It differs from a real circle on a maximum 0.00026 radiuses (at PI/8, 3*PI/8, 5*PI/8, 7*PI/8, 9*PI/8, 11*PI/8, 13*PI/8 and 15*PI/8 angles). At 0, PI/4, PI/2, 3*PI/4, PI, 5*PI/4, 3*PI/2 and 7*PI/4 it's exactly a tangent to a circle.
drawContentStream (line 699)
Draw a Zend_Pdf_ContentStream at the specified position on the page
drawEllipse (line 752)
Draw an ellipse inside the specified rectangle.
Method signatures: drawEllipse($x1, $y1, $x2, $y2); drawEllipse($x1, $y1, $x2, $y2, $fillType); drawEllipse($x1, $y1, $x2, $y2, $startAngle, $endAngle); drawEllipse($x1, $y1, $x2, $y2, $startAngle, $endAngle, $fillType);
drawImage (line 869)
Draw an image at the specified position on the page.
drawLayoutBox (line 895)
Draw a LayoutBox at the specified position on the page.
drawLine (line 907)
Draw a line from x1,y1 to x2,y2.
drawPolygon (line 933)
Draw a polygon.
If $fillType is Zend_Pdf_Const::SHAPEDRAW_FILLNSTROKE or Zend_Pdf_Const::SHAPEDRAW_FILL, then polygon is automatically closed. See detailed description of these methods in a PDF documentation (section 4.4.2 Path painting Operators, Filling)
drawRectangle (line 991)
Draw a rectangle.
Fill types: Zend_Pdf_Const::SHAPEDRAW_FILLNSTROKE - fill rectangle and stroke (default) Zend_Pdf_Const::SHAPEDRAW_STROKE - stroke rectangle Zend_Pdf_Const::SHAPEDRAW_FILL - fill rectangle
drawText (line 1024)
Draw a line of text at the specified position.
flush (line 302)
Dump current drawing instructions into the content stream.
getFontSize (line 483)
Get current font size
getHeight (line 1047)
Return the height of this page in points.
getPageDictionary (line 290)
Retrive PDF file reference to the page
getWidth (line 1058)
Return the width of this page in points.
pathClose (line 1069)
Close the path by drawing a straight line back to it's beginning.
pathLine (line 1079)
Continue the open path in a straight line to the specified position.
pathMove (line 1090)
Start a new path at the specified position. If a path has already been started, move the cursor without drawing a line.
rawWrite (line 1099)
Write raw PDF commands to the page.
render (line 340)
Prepare page to be rendered into PDF.
restoreGS (line 520)
Restore the graphics state that was saved with the last call to save().
rotate (line 1108)
Rotate the page.
saveGS (line 507)
Save the graphics state of this page.
This takes a snapshot of the currently applied style, position, clipping area and any rotation/translation/scaling that has been applied.
setFillColor (line 372)
Set fill color.
setFont (line 437)
Set current font.
setLineColor (line 383)
Set line color.
setLineDashingPattern (line 410)
Set line dashing pattern
Pattern is an array of floats: array(on_length, off_length, on_length, off_length, ...) Phase is shift from the beginning of line.
setLineWidth (line 394)
Set line width.
setStyle (line 455)
Set the style to use for future drawing operations on this page
Documentation generated on Wed, 08 Mar 2006 04:54:00 -0800 by phpDocumentor 1.3.0RC4