\Pop\PdfPdf

Pop Pdf class

Summary

Methods
Properties
Constants
importFromFile()
importRawData()
writeToFile()
outputToHttp()
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\Document\AbstractDocument

Import from an existing PDF file

Parameters

string $file
mixed $pages

Returns

\Pop\Pdf\Document\AbstractDocument

importRawData()

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

Import from raw data stream

Parameters

string $data
mixed $pages

Returns

\Pop\Pdf\Document\AbstractDocument

writeToFile()

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

Write document to file

Parameters

\Pop\Pdf\Document\AbstractDocument $document
string $filename

outputToHttp()

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

Output to HTTP response

Parameters

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