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 = setasign\Fpdi\PdfReader\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

getPageObject()

Get the indirect object of this page.

getWidthAndHeight()

public Page::getWidthAndHeight (
[ string $box = setasign\Fpdi\PdfReader\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