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 setasign\Fpdi\PdfReader\Page::$inheritedAttributes

Inherited attributes

$pageDictionary

protected \setasign\Fpdi\PdfParser\Type\PdfDictionary setasign\Fpdi\PdfReader\Page::$pageDictionary

$pageObject

protected \setasign\Fpdi\PdfParser\Type\PdfIndirectObject setasign\Fpdi\PdfReader\Page::$pageObject

$parser

protected \setasign\Fpdi\PdfParser\PdfParser setasign\Fpdi\PdfReader\Page::$parser


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
 

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
 
See
  • PageBoundaries

getContentStream()

public Page::getContentStream (
void
): string

Get the raw content stream.

Exceptions

Throws PdfReaderException

getPageDictionary()

Get the dictionary of this page.

getPageObject()

Get the indirect object of this page.

getRotation()

public Page::getRotation (
void
): int

Get the rotation value.

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