PDF::API2::Page
Returns a page object (called from $pdf->page).
Returns a page object converted from $pdfpage (called from $pdf->openpage).
Marks a page to be updated (by $pdf->update).
Sets the mediabox. This method supports the following aliases: '4A', '2A', 'A0', 'A1', 'A2', 'A3', 'A4', 'A5', 'A6', '4B', '2B', 'B0', 'B1', 'B2', 'B3', 'B4', 'B5', 'B6', 'LETTER', 'BROADSHEET', 'LEDGER', 'TABLOID', 'LEGAL', 'EXECUTIVE', and '36X36'.
Gets the mediabox based one best estimates or the default.
Sets the cropbox. This method supports the same aliases as mediabox.
Gets the cropbox based one best estimates or the default.
Sets the bleedbox. This method supports the same aliases as mediabox.
Gets the bleedbox based one best estimates or the default.
Sets the trimbox. This method supports the same aliases as mediabox.
Gets the trimbox based one best estimates or the default.
Sets the artbox. This method supports the same aliases as mediabox.
Gets the artbox based one best estimates or the default.
Rotates the page by the given degrees, which must be a multiple of 90.
(This allows you to auto-rotate to landscape without changing the mediabox!)
Returns a graphics content object. If $prepend is true the content will be prepended to the page description.
Returns a text content object. If $prepend is true the content will be prepended to the page description.
Returns a new annotation object.
Adds a resource to the page-inheritance tree.
Example:
$co->resource('Font',$fontkey,$fontobj); $co->resource('XObject',$imagekey,$imageobj); $co->resource('Shading',$shadekey,$shadeobj); $co->resource('ColorSpace',$spacekey,$speceobj);
Note: You only have to add the required resources, if they are NOT handled by the *font*, *image*, *shade* or *space* methods.
Alfred Reibenschuh
To install PDF::API2, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PDF::API2
CPAN shell
perl -MCPAN -e shell install PDF::API2
For more information on module installation, please visit the detailed CPAN module installation guide.