Documentation

Compiler extends AbstractCompiler
in package

Pdf compiler class

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

Properties

$byteLength  : int|null
PDF byte length
$compression  : bool
Compression property
$document  : Document|null
Document object
$fontReferences  : array<string|int, mixed>
Font references
$fonts  : array<string|int, mixed>
Fonts array
$info  : InfoObject|null
Info object
$objects  : array<string|int, mixed>
Objects array
$output  : string|null
PDF document output buffer
$pages  : array<string|int, mixed>
Pages array
$parent  : ParentObject|null
Parent object
$root  : RootObject|null
Root object
$trailer  : string|null
PDF document trailer

Methods

finalize()  : void
Compile and finalize the PDF document
getDocument()  : Document|null
Get the document object
getFontReferences()  : array<string|int, mixed>
Get the font references
getFonts()  : array<string|int, mixed>
Get the fonts
getInfo()  : InfoObject|null
Get the info object
getOutput()  : string
Get the compiled output
getParent()  : ParentObject|null
Get the parent object
getRoot()  : RootObject|null
Get the root object
lastIndex()  : int
Return the last object index.
prepareFonts()  : void
Prepare the font objects
setDocument()  : Compiler
Set the document object
calculateByteLength()  : int
Calculate byte length
formatByteLength()  : string
Format byte length
getCoordinates()  : array<string|int, mixed>
Get coordinates based on document origin
prepareAnnotations()  : void
Prepare the annotation objects
prepareFields()  : void
Prepare the field objects
prepareForms()  : void
Prepare the form objects
prepareImages()  : void
Prepare the image objects
preparePaths()  : void
Prepare the path objects
prepareText()  : void
Prepare the text objects
prepareTextStreams()  : void
Prepare the text streams objects
setInfo()  : AbstractCompiler
Set the info object
setParent()  : AbstractCompiler
Set the parent object
setRoot()  : AbstractCompiler
Set the root object

Properties

$fontReferences

Font references

protected array<string|int, mixed> $fontReferences = []

$output

PDF document output buffer

protected string|null $output = null

Methods

getFontReferences()

Get the font references

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

getFonts()

Get the fonts

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

getOutput()

Get the compiled output

public getOutput() : string
Return values
string

lastIndex()

Return the last object index.

public lastIndex() : int
Return values
int

calculateByteLength()

Calculate byte length

protected calculateByteLength(string|null $string) : int
Parameters
$string : string|null
Return values
int

formatByteLength()

Format byte length

protected formatByteLength(int|string $num) : string
Parameters
$num : int|string
Return values
string

getCoordinates()

Get coordinates based on document origin

protected getCoordinates(int $x, int $y, PageObject $pageObject) : array<string|int, mixed>
Parameters
$x : int
$y : int
$pageObject : PageObject
Return values
array<string|int, mixed>

prepareAnnotations()

Prepare the annotation objects

protected prepareAnnotations(array<string|int, mixed> $annotations, PageObject $pageObject) : void
Parameters
$annotations : array<string|int, mixed>
$pageObject : PageObject

prepareFields()

Prepare the field objects

protected prepareFields(array<string|int, mixed> $fields, PageObject $pageObject) : void
Parameters
$fields : array<string|int, mixed>
$pageObject : PageObject
Tags
throws
Exception

prepareForms()

Prepare the form objects

protected prepareForms() : void

prepareImages()

Prepare the image objects

protected prepareImages(array<string|int, mixed> $images, PageObject $pageObject) : void
Parameters
$images : array<string|int, mixed>
$pageObject : PageObject

preparePaths()

Prepare the path objects

protected preparePaths(array<string|int, mixed> $paths, PageObject $pageObject) : void
Parameters
$paths : array<string|int, mixed>
$pageObject : PageObject

prepareText()

Prepare the text objects

protected prepareText(array<string|int, mixed> $text, PageObject $pageObject) : void
Parameters
$text : array<string|int, mixed>
$pageObject : PageObject
Tags
throws
Exception

prepareTextStreams()

Prepare the text streams objects

protected prepareTextStreams(array<string|int, mixed> $textStreams, PageObject $pageObject) : void
Parameters
$textStreams : array<string|int, mixed>
$pageObject : PageObject
Tags
throws
Exception

        
On this page

Search results