|
| | createDomPdf ($html, $filename=null, $paper=null, $orientation=null, $options=null) |
| | Create a PDF file using DomPdf. More...
|
| |
| | createWebKit ($html, $filename=null, $paper=null, $orientation=null, $options=null) |
| | Create a PDF file using WebKit. More...
|
| |
| | create ($html, $filename=null, $paper=null, $orientation=null, $options=null) |
| | Create a PDF file using the default back-end. More...
|
| |
| | __construct ($fred, $config=null) |
| |
| | __destruct () |
| |
| | clientConfig () |
| | Public configuration. More...
|
| |
| | config ($key, $default=null) |
| | Retrieve a config value. More...
|
| |
| | ping () |
| | Ping function. More...
|
| |
| | filemtime ($filename) |
| | Filemtime with session cache. More...
|
| |
| | component ($name) |
| | Get a component (local or default). More...
|
| |
| | components (... $names) |
| | Get multiple components in an array. More...
|
| |
| | propertyExists ($property) |
| | Check if a property exists (public or published). More...
|
| |
| | constants ($prefix=null) |
| | Return all constants. More...
|
| |
| | get ($key) |
| | Get one or more properties. More...
|
| |
| | set ($key, $value=null) |
| | Set one or more properties. More...
|
| |
| | __get ($key) |
| |
| | __set ($key, $value) |
| |
|
| | getBackEnds () |
| |
| | getDomPdf () |
| |
| | init () |
| |
| | done () |
| |
| | getSession () |
| |
| | publish ($property, $visibility=self::READABLE) |
| | Publish a property (or hide it again). More...
|
| |
| | configure ($config) |
| | Configure the object. More...
|
| |
| | _get ($key) |
| | Default getter if no specific setter is defined, and the property is also not published (readable). More...
|
| |
| | _set ($key, $value) |
| | Default setter if no specific setter is defined, and the property is also not published (writeable). More...
|
| |
Definition at line 5 of file Pdf.php.
◆ create()
| create |
( |
|
$html, |
|
|
|
$filename = null, |
|
|
|
$paper = null, |
|
|
|
$orientation = null, |
|
|
|
$options = null |
|
) |
| |
Create a PDF file using the default back-end.
- Parameters
-
| string | $html | HTML presentation of content. |
| string | $filename | Target file (empty = return data). |
| string | $paper | Paper size (see PAPER_* constants; empty = default). |
| string | $orientation | Paper orientation (see ORIENTATION_* constants; empty = default). |
| array | $options | Extra options (back-end specific). |
- Returns
- mixed Data if no filename given, otherwise filesize (false on error).
Definition at line 65 of file Pdf.php.
◆ createDomPdf()
| createDomPdf |
( |
|
$html, |
|
|
|
$filename = null, |
|
|
|
$paper = null, |
|
|
|
$orientation = null, |
|
|
|
$options = null |
|
) |
| |
Create a PDF file using DomPdf.
- See also
- create()
Definition at line 32 of file Pdf.php.
◆ createWebKit()
| createWebKit |
( |
|
$html, |
|
|
|
$filename = null, |
|
|
|
$paper = null, |
|
|
|
$orientation = null, |
|
|
|
$options = null |
|
) |
| |
Create a PDF file using WebKit.
- See also
- create()
Definition at line 43 of file Pdf.php.
◆ getBackEnds()
◆ getDomPdf()
◆ $_backEnds
◆ $_domPdf
◆ $defaultBackEnd
| $defaultBackEnd = 'domPdf' |
◆ $orientation
| $orientation = self::ORIENTATION_PORTRAIT |
Default paper orientation.
Definition at line 21 of file Pdf.php.
◆ $paper
Default paper size.
Definition at line 20 of file Pdf.php.
◆ $webKitHtmlToPdfPath
| $webKitHtmlToPdfPath = null |
wkHTMLtoPDF command-line, with placeholders voor [options] [source] en [target].
Definition at line 23 of file Pdf.php.
◆ ORIENTATION_LANDSCAPE
| const ORIENTATION_LANDSCAPE = 'landscape' |
◆ ORIENTATION_PORTRAIT
| const ORIENTATION_PORTRAIT = 'portrait' |
◆ PAPER_A0
◆ PAPER_A1
◆ PAPER_A2
◆ PAPER_A3
◆ PAPER_A4
◆ PAPER_A5
◆ PAPER_LEGAL
| const PAPER_LEGAL = 'legal' |
◆ PAPER_LETTER
| const PAPER_LETTER = 'letter' |
The documentation for this class was generated from the following file:
- /var/www/fred.local/vendor/rsi/fred/src/Rsi/Fred/Pdf.php