/** * Bulk export: PDF export, based on the HTML export converted to PDF * * @copyright Copyright (C) 2015 Combodo SARL * @license http://opensource.org/licenses/AGPL-3.0 */ class PDFBulkExport extends HTMLBulkExport { public function DisplayUsage(Page $oP) { $oP->p(" * pdf format options:"); $oP->p(" *\tfields: (mandatory) the comma separated list of field codes to export (e.g: name,org_id,service_name...)."); $oP->p(" *\tpage_size: (optional) size of the page. One of A4, A3, Letter (default is 'A4')."); $oP->p(" *\tpage_orientation: (optional) the orientation of the page. Either Portrait or Landscape (default is 'Portrait')."); $oP->p(" *\tdate_format: the format to use when exporting date and time fields (default = the format used in the user interface). Example: 'm/d/Y H:i:s'"); } public function EnumFormParts() { return array_merge(array('pdf_options' => array('pdf_options')), parent::EnumFormParts()); } public function DisplayFormPart(WebPage $oP, $sPartId) { switch($sPartId) { case 'pdf_options': $oP->add('
'); $sJSTooltip = json_encode('