\Pop\PdfAbstractPdf

Abstract Pdf class

Summary

Methods
Properties
Constants
importFromFile()
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

Import from an existing PDF file

Parameters

string $file
mixed $pages

Returns

\Pop\Pdf\Document

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) : string

Output to HTTP response

Parameters

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

Returns

string