setasign\Fpdi\PdfReader

Page Class representing a page of a PDF document

File: /FPDI v2/PdfReader/Page.php

Class hierarchy

Summary

Properties

$inheritedAttributes

protected null|array Page::$inheritedAttributes

Inherited attributes


Methods

getAttribute()

public Page::getAttribute (
string $name [, bool $inherited = true ]
): \setasign\Fpdi\PdfParser\Type\PdfType|null

Get a page attribute.

Parameters
$name : string
 
$inherited : bool
 
Exceptions

Throws \setasign\Fpdi\PdfParser\PdfParserException

Throws \setasign\Fpdi\PdfParser\Type\PdfTypeException

Throws \setasign\Fpdi\PdfParser\CrossReference\CrossReferenceException

getBoundary()

public Page::getBoundary (
[ string $box = PageBoundaries::CROP_BOX [, bool $fallback = true ]]
): bool|DataStructure\Rectangle

Get a boundary of this page.

Parameters
$box : string
 
$fallback : bool
 
Exceptions

Throws \setasign\Fpdi\PdfParser\PdfParserException

Throws \setasign\Fpdi\PdfParser\Type\PdfTypeException

Throws \setasign\Fpdi\PdfParser\CrossReference\CrossReferenceException

See
  • PageBoundaries

getContentStream()

getExternalLinks()

public Page::getExternalLinks (): array

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.

Parameters
$box
 

getPageObject()

Get the indirect object of this page.

getWidthAndHeight()

public Page::getWidthAndHeight (
[ string $box = PageBoundaries::CROP_BOX [, bool $fallback = true ]]
): array|bool

Get the width and height of this page.

Parameters
$box : string
 
$fallback : bool
 
Exceptions

Throws \setasign\Fpdi\PdfParser\PdfParserException

Throws \setasign\Fpdi\PdfParser\Type\PdfTypeException

Throws \setasign\Fpdi\PdfParser\CrossReference\CrossReferenceException