Method |
Description |
|
__construct ( string $pdf, string $sz = null, integer $w = null, integer $h = null ) : Pdf |
Constructor |
|
addFont ( string $font, boolean $embedOverride = false ) : Pdf |
Method to add a font to the PDF. |
|
addImage ( string $image, integer $x, integer $y, mixed $scl = null, boolean $preserveRes = true ) : Pdf |
Method to add an image to the PDF. |
|
addLink ( integer $x, integer $y, integer $w, integer $h, integer $X, integer $Y, integer $Z, integer $dest = null ) : Pdf |
Method to add an internal link to the PDF. |
|
addPage ( string $sz = null, integer $w = null, integer $h = null ) : Pdf |
Method to add a page to the PDF of a determined size. |
|
addText ( integer $x, integer $y, integer $size, string $str, string $font = null ) : Pdf |
Method to add text to the PDF. |
|
addUrl ( integer $x, integer $y, integer $w, integer $h, string $url ) : Pdf |
Method to add a URL link to the PDF. |
|
closeLayer ( ) : Pdf |
Method to close a new graphics state layer within the PDF. |
|
copyPage ( integer $pg ) : Pdf |
Method to copy a page of the PDF. |
|
curPage ( ) : integer |
Method to return the current page number of the current page of the PDF. |
|
deletePage ( integer $pg ) : Pdf |
Method to delete the page of the PDF and its content objects. |
|
drawArc ( integer $x, integer $y, integer $start, integer $end, integer $w, integer $h = null, boolean $fill = true ) : Pdf |
Method to add an arc to the PDF. |
|
drawCircle ( integer $x, integer $y, integer $w, boolean $fill = true ) : Pdf |
Method to add a circle to the PDF. |
|
drawClippingCircle ( integer $x, integer $y, integer $w ) : Pdf |
Method to add a clipping circle to the PDF. |
|
drawClippingEllipse ( integer $x, integer $y, integer $w, integer $h = null ) : Pdf |
Method to add a clipping ellipse to the PDF. |
|
drawClippingPolygon ( array $points ) : Pdf |
Method to add a clipping polygon to the PDF. |
|
drawClippingRectangle ( integer $x, integer $y, integer $w, integer $h = null ) : Pdf |
Method to add a clipping rectangle to the PDF. |
|
drawClippingSquare ( integer $x, integer $y, integer $w ) : Pdf |
Method to add a clipping square to the PDF. |
|
drawEllipse ( integer $x, integer $y, integer $w, integer $h = null, boolean $fill = true ) : Pdf |
Method to add an ellipse to the PDF. |
|
drawLine ( integer $x1, integer $y1, integer $x2, integer $y2 ) : Pdf |
Method to add a line to the PDF. |
|
drawPolygon ( array $points, boolean $fill = true ) : Pdf |
Method to add a polygon to the image. |
|
drawRectangle ( integer $x, integer $y, integer $w, integer $h = null, boolean $fill = true ) : Pdf |
Method to add a rectangle to the PDF. |
|
drawSquare ( integer $x, integer $y, integer $w, boolean $fill = true ) : Pdf |
Method to add a square to the PDF. |
|
finalize ( ) : Pdf |
Method to finalize the PDF. |
|
getCompression ( ) : boolean |
Method to get the compression of the PDF. |
|
getFonts ( ) : string |
Method to return the name of the last font added. |
|
getLastFontName ( ) : string |
Method to return the name of the last font added. |
|
getStringSize ( string $str, string $font, integer $sz ) : array |
Method to get the width and height of a string in a certain font. It returns
an array with the approximate width, height and offset baseline values. |
|
import ( string $pdf, integer | string | array $pg = null ) : Pdf |
Method to import either an entire PDF, or a page of a PDF, and the related data. |
|
numPages ( ) : integer |
Method to return the current number of pages in the PDF. |
|
openLayer ( ) : Pdf |
Method to open a new graphics state layer within the PDF. |
|
orderPages ( array $pgs ) : Pdf |
Method to order the pages of the PDF. |
|
output ( boolean $download = false ) : void |
Output the PDF directly to the browser. |
|
save ( string $to = null, boolean $append = false ) : Pdf |
Save the PDF directly to the server. |
|
setAuthor ( string $auth ) : Pdf |
Method to set the PDF info author. |
|
setBackgroundColor ( Pop\Color\Space\ColorInterface $color ) : Pdf |
Method to set the background of the document. |
|
setCompression ( boolean $comp = false ) : Pdf |
Method to set the compression of the PDF. |
|
setCreateDate ( string $dt ) : Pdf |
Method to set the PDF info creation date. |
|
setFillColor ( Pop\Color\Space\ColorInterface $color ) : Pdf |
Method to set the fill color of objects and text in the PDF. |
|
setModDate ( string $dt ) : Pdf |
Method to set the PDF info modification date. |
|
setPage ( integer $pg ) : Pdf |
Method to set the current page of the PDF in which to edit. |
|
setStrokeColor ( Pop\Color\Space\ColorInterface $color ) : Pdf |
Method to set the stroke color of paths in the PDF. |
|
setStrokeWidth ( integer $w = null, integer $dash_len = null, integer $dash_gap = null ) : Pdf |
Method to set the width and dash properties of paths in the PDF. |
|
setSubject ( string $subj ) : Pdf |
Method to set the PDF info subject. |
|
setTextParams ( integer $c, integer $w, integer $h = 100, integer $v = 100, integer $rot, integer $rend ) : Pdf |
Method to set the text parameters for rendering text content. |
|
setTitle ( string $tle ) : Pdf |
Method to set the PDF info title. |
|
setVersion ( string $ver ) : Pdf |
Method to set the PDF version. |
|