ORIGIN_TOP_LEFT
ORIGIN_TOP_LEFT = 'ORIGIN_TOP_LEFT'
Document origin constants
Pdf document class
$metadata : \Pop\Pdf\Document\Metadata
PDF metadata for the info object
setVersion(float $version) : \Pop\Pdf\Document\AbstractDocument
Set the document version
float | $version |
setMetadata(\Pop\Pdf\Document\Metadata $metadata) : \Pop\Pdf\Document\AbstractDocument
Set the document metadata
\Pop\Pdf\Document\Metadata | $metadata |
setOrigin(string $origin) : \Pop\Pdf\Document\AbstractDocument
Set the document origin
string | $origin |
getMetadata() : \Pop\Pdf\Document\Metadata
Get the document metadata
getPage(integer $p) : \Pop\Pdf\Document\Page
Get a PDF page object
integer | $p |
getFont(string $name) : \Pop\Pdf\Document\Font
Get a PDF font object
string | $name |
getForm(string $name) : \Pop\Pdf\Document\Form
Get form objects
string | $name |
addForm(\Pop\Pdf\Document\Form $form) : \Pop\Pdf\Document\AbstractDocument
Add form
\Pop\Pdf\Document\Form | $form |
setCompression(boolean $compression) : \Pop\Pdf\Document\AbstractDocument
Set the compression
boolean | $compression |
__construct(\Pop\Pdf\Document\Page $page = null, \Pop\Pdf\Document\Metadata $metadata = null) : \Pop\Pdf\Document\AbstractDocument
Constructor
Instantiate a PDF document
\Pop\Pdf\Document\Page | $page | |
\Pop\Pdf\Document\Metadata | $metadata |
addPage(\Pop\Pdf\Document\Page $page) : \Pop\Pdf\Document
Add a page to the PDF document
\Pop\Pdf\Document\Page | $page |
addPages(array $pages) : \Pop\Pdf\Document
Add pages to the PDF document
array | $pages |
createPage(mixed $size, integer $height = null) : \Pop\Pdf\Document\Page
Create and return a new page object, adding it to the PDF document
mixed | $size | |
integer | $height |
copyPage(integer $p, boolean $preserveContent = true) : \Pop\Pdf\Document\Page
Copy and return a page of the PDF, adding it to the PDF document
integer | $p | |
boolean | $preserveContent |
orderPages(array $pages) : \Pop\Pdf\Document
Order the pages
array | $pages |
deletePage(integer $p) : \Pop\Pdf\Document
Delete a page from the PDF document
integer | $p |
addFont(\Pop\Pdf\Document\Font $font, boolean $embedOverride = false) : \Pop\Pdf\Document
Add a font
\Pop\Pdf\Document\Font | $font | |
boolean | $embedOverride |
embedFont(\Pop\Pdf\Document\Font $font, boolean $embedOverride = false) : \Pop\Pdf\Document
Add a font
\Pop\Pdf\Document\Font | $font | |
boolean | $embedOverride |
setCurrentPage(integer $p) : \Pop\Pdf\Document
Set the current page of the PDF document
integer | $p |
setCurrentFont(string $name) : \Pop\Pdf\Document
Set the current font of the PDF document
string | $name |
importObjects(array $objects) : \Pop\Pdf\Document
Import objects into document
array | $objects |
importFonts(array $fonts) : \Pop\Pdf\Document
Import fonts into document
array | $fonts |