| Moodle PHP Documentation 5.1
    Moodle 5.1dev (Build: 20250711) (9addea9f0ac) | 
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.
The URI is the binary value of the PDF string object. It can be in PdfDocEncoding or in UTF-16BE encoding.
| 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 |