Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
|
Class representing a page of a PDF document. More...
Public Member Functions | |
__construct (PdfIndirectObject $page, PdfParser $parser) | |
Page constructor. | |
getAttribute ($name, $inherited=true) | |
Get a page attribute. | |
getBoundary ($box=PageBoundaries::CROP_BOX, $fallback=true) | |
Get a boundary of this page. | |
getContentStream () | |
Get the raw content stream. | |
getExternalLinks ($box=PageBoundaries::CROP_BOX) | |
Get information of all external links on this page. | |
getPageDictionary () | |
Get the dictionary of this page. | |
getPageObject () | |
Get the indirect object of this page. | |
getRotation () | |
Get the rotation value. | |
getWidthAndHeight ($box=PageBoundaries::CROP_BOX, $fallback=true) | |
Get the width and height of this page. | |
Protected Attributes | |
null array | $inheritedAttributes |
Inherited attributes. | |
PdfDictionary | $pageDictionary |
PdfIndirectObject | $pageObject |
PdfParser | $parser |
Class representing a page of a PDF document.
Page::__construct | ( | PdfIndirectObject | $page, |
PdfParser | $parser ) |
Page constructor.
PdfIndirectObject | $page | |
PdfParser | $parser |
Page::getAttribute | ( | $name, | |
$inherited = true ) |
Get a page attribute.
string | $name | |
bool | $inherited |
PdfType|null |
Page::getBoundary | ( | $box = PageBoundaries::CROP_BOX, | |
$fallback = true ) |
Get a boundary of this page.
string | $box | |
bool | $fallback |
bool|Rectangle |
Page::getContentStream | ( | ) |
Get the raw content stream.
string |
Page::getExternalLinks | ( | $box = PageBoundaries::CROP_BOX | ) |
Get information of all external links on this page.
All coordinates are normalized in view to rotation and translation of the boundary-box, so that their origin is lower-left.
array |
Page::getPageDictionary | ( | ) |
Get the dictionary of this page.
PdfDictionary |
Page::getPageObject | ( | ) |
Get the indirect object of this page.
PdfIndirectObject |
Page::getRotation | ( | ) |
Get the rotation value.
int |
Page::getWidthAndHeight | ( | $box = PageBoundaries::CROP_BOX, | |
$fallback = true ) |
Get the width and height of this page.
string | $box | |
bool | $fallback |
array|bool |