Documentation

PageInterface
in

Pdf page interface

Tags
category

Pop

author

Nick Sagona, III dev@nolainteractive.com

copyright

Copyright (c) 2009-2024 NOLA Interactive, LLC. (http://www.nolainteractive.com)

license

http://www.popphp.org/license New BSD License

version
5.2.0

Table of Contents

Methods

addAnnotation()  : PageInterface
Add an annotation to the PDF page
addImage()  : PageInterface
Add an image to the PDF page
addLink()  : PageInterface
Add a link annotation to the PDF page
addPath()  : PageInterface
Add a path to the Pdf page
addText()  : PageInterface
Add text to the PDF page
addUrl()  : PageInterface
Add a URL annotation to the PDF page
getAnnotations()  : array<string|int, mixed>
Get annotation objects
getHeight()  : int
Get the page height
getImages()  : array<string|int, mixed>
Get image objects
getIndex()  : int|null
Get the page index
getPaths()  : array<string|int, mixed>
Get path objects
getText()  : array<string|int, mixed>
Get text objects
getWidth()  : int
Get the page width
hasAnnotations()  : bool
Determine if the page has annotation objects
hasImages()  : bool
Determine if the page has image objects
hasPaths()  : bool
Determine if the page has path objects
hasText()  : bool
Determine if the page has text objects
setHeight()  : PageInterface
Set the page height
setIndex()  : PageInterface
Set the page index
setWidth()  : PageInterface
Set the page width

Methods

addText()

Add text to the PDF page

public addText(Text $text, string $fontStyle[, int $x = 0 ][, int $y = 0 ]) : PageInterface
Parameters
$text : Text
$fontStyle : string

(can be either a reference to a font or a style)

$x : int = 0
$y : int = 0
Return values
PageInterface

getAnnotations()

Get annotation objects

public getAnnotations() : array<string|int, mixed>
Return values
array<string|int, mixed>

getHeight()

Get the page height

public getHeight() : int
Return values
int

getImages()

Get image objects

public getImages() : array<string|int, mixed>
Return values
array<string|int, mixed>

getIndex()

Get the page index

public getIndex() : int|null
Return values
int|null

getPaths()

Get path objects

public getPaths() : array<string|int, mixed>
Return values
array<string|int, mixed>

getText()

Get text objects

public getText() : array<string|int, mixed>
Return values
array<string|int, mixed>

getWidth()

Get the page width

public getWidth() : int
Return values
int

hasAnnotations()

Determine if the page has annotation objects

public hasAnnotations() : bool
Return values
bool

hasImages()

Determine if the page has image objects

public hasImages() : bool
Return values
bool

hasPaths()

Determine if the page has path objects

public hasPaths() : bool
Return values
bool

hasText()

Determine if the page has text objects

public hasText() : bool
Return values
bool

        
On this page

Search results