24 Settings::setDefaultValue(
"pdf",
"wkhtmltopdf_path",
"wkhtmltopdf", String,
"The path to the wkhtmltopdf executable on your system.",
"PDF Settings",
null, 2);
25 Settings::setDefaultValue(
"pdf",
"PDF_convertor",
"wkhtmltopdf", String,
"Specifies the method used to convert HTML to PDF",
"PDF Settings",
"wkhtmltopdf\nchrome\nexternal", 1);
26 Settings::setDefaultValue(
"pdf",
"chrome_path",
"chrome", String,
"The path to the chrome (or chromium) executable on your system",
"PDF Settings",
null, 3);
27 Settings::setDefaultValue(
"pdf",
"chrome_screenshot_path",
"", String,
"Path to the screenshot script on your system",
"PDF Settings",
null, 4);
28 Settings::setDefaultValue(
"pdf",
"external_PDF_url",
"", String,
"External URL to web-based PDF generator",
"PDF Settings",
null, 5);
29 Settings::setDefaultValue(
"pdf",
"external_PNG_url",
"", String,
"External URL to web-based PNG generator",
"PDF Settings",
null, 5);
36 $dir =
$config[
"uploadbase"] . DIRECTORY_SEPARATOR .
"pdf_tmp";
38 if (!file_exists(
$dir))
50 return $convertor->preProcessTemplate($template);
static using()
Import the datamodels, views and manifest for the specified component(s).
Provides a central management class for event handlers and common functionality for the pdf component...
static createConvertor($pdf)
static getTempDirectory()
static preprocessTemplate($template)
static getValue($component, $name)
Retrieve the value of the specified Setting.
static setDefaultValue($component, $name, $value, $field_type="String", $annotation="", $category="", $options="", $weight=0)
Sets the default value of the given component setting.