\Pop\PdfPdf

Pop Pdf class

Summary

Methods
Properties
Constants
importFromFile()
writeToFile()
outputToHttp()
importRawData()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

importFromFile()

importFromFile(string  $file, mixed  $pages = null) : \Pop\Pdf\AbstractDocument

Import from an existing PDF file

Parameters

string $file
mixed $pages

Returns

\Pop\Pdf\AbstractDocument

writeToFile()

writeToFile(\Pop\Pdf\AbstractDocument  $document, string  $filename) : void

Write document to file

Parameters

\Pop\Pdf\AbstractDocument $document
string $filename

outputToHttp()

outputToHttp(\Pop\Pdf\AbstractDocument  $document, string  $filename = 'pop.pdf', boolean  $forceDownload = false, array  $headers = array()) : string

Output to HTTP response

Parameters

\Pop\Pdf\AbstractDocument $document
string $filename
boolean $forceDownload
array $headers

Returns

string

importRawData()

importRawData(string  $data, mixed  $pages = null) : \Pop\Pdf\AbstractDocument

Import from raw data

Parameters

string $data
mixed $pages

Returns

\Pop\Pdf\AbstractDocument