Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
|
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. | |
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::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 |