Definition at line 18 of file pdf.inc.
◆ __construct()
WkhtmltoPDFConvertor::__construct |
( |
|
$pdf | ) |
|
◆ coverPage()
WkhtmltoPDFConvertor::coverPage |
( |
|
$url | ) |
|
Provides a separate URL to use as the cover page of the PDF.
- Parameters
-
string | $url | the URL used to generate the cover page |
- Returns
- PDF
Implements PDFConvertor.
Definition at line 33 of file pdf.inc.
◆ footer()
WkhtmltoPDFConvertor::footer |
( |
|
$text, |
|
|
|
$position = "center" , |
|
|
|
$size = 11 |
|
) |
| |
- Parameters
-
$text | - text of the footer |
$position | - valid positions are left, right, and center |
$size | - font size for the footer ?? doesn't work |
Implements PDFConvertor.
Definition at line 45 of file pdf.inc.
47 $this->
footer =
"--footer-font-size {$size} --footer-{$position} \"{$text}\"";
footer($text, $position="center", $size=11)
◆ generate()
WkhtmltoPDFConvertor::generate |
( |
| ) |
|
Implements PDFConvertor.
Definition at line 50 of file pdf.inc.
57 $uri = $this->pdf->uri;
59 if ($this->pdf->useToken)
62 $uri =
"/action/auto_login/authenticate?token=$token";
68 if ($this->pdf->landscape)
70 $flags =
"-O landscape ";
73 $tmpName = sha1(
$url . now()) .
".pdf";
75 $footer = ($this->footer) ? $this->
footer :
"";
78 $cmd =
"{$exe} {$footer} {$flags}-q \"{$url}\" {$output}";
86 trace(implode(
"\n",
$out), 3);
89 if (!$this->pdf->output) unlink(
$output);
static createOneTimeToken($url, $ip_addr=null)
FakoliException is the base exception class for all Fakoli errors.
static getTempDirectory()
static getValue($component, $name)
Retrieve the value of the specified Setting.
if(array_key_exists("HTTP_IF_MODIFIED_SINCE", $_SERVER)) $content
◆ preProcessTemplate()
WkhtmltoPDFConvertor::preProcessTemplate |
( |
|
$template | ) |
|
◆ screenshot()
WkhtmltoPDFConvertor::screenshot |
( |
| ) |
|
The documentation for this class was generated from the following file:
- C:/code/cms.sonjara.com/cms/components/pdf/pdf.inc