PATH:
home
/
letacommog
/
crmleta
/
modules
/
PDFMaker
/
resources
<?php /* * ******************************************************************************* * The content of this file is subject to the PDF Maker license. * ("License"); You may not use this file except in compliance with the License * The Initial Developer of the Original Code is IT-Solutions4You s.r.o. * Portions created by IT-Solutions4You s.r.o. are Copyright(C) IT-Solutions4You s.r.o. * All Rights Reserved. * ****************************************************************************** */ if (file_exists("modules/PDFMaker/resources/mpdf/mpdf.php")) require_once("modules/PDFMaker/resources/mpdf/mpdf.php"); elseif (file_exists("modules/PDFMaker/resources/mpdf/mpdf/mpdf.php")) require_once("modules/PDFMaker/resources/mpdf/mpdf/mpdf.php"); class ITS4You_PDFMaker_JavaScript extends mPDF { var $javascript; var $n_js; function IncludeJS($script) { $this->javascript=$script; } function _putjavascript() { $this->_newobj(); $this->n_js=$this->n; $this->_out('<<'); $this->_out('/Names [(EmbeddedJS) '.($this->n+1).' 0 R]'); $this->_out('>>'); $this->_out('endobj'); $this->_newobj(); $this->_out('<<'); $this->_out('/S /JavaScript'); $this->_out('/JS '.$this->_textstring($this->javascript)); $this->_out('>>'); $this->_out('endobj'); } function _putresources() { parent::_putresources(); if (!empty($this->javascript)) { $this->_putjavascript(); } } function _putcatalog() { parent::_putcatalog(); if (!empty($this->javascript)) { $this->_out('/Names <</JavaScript '.($this->n_js).' 0 R>>'); } } function AutoPrint($dialog=false) { //Open the print dialog or start printing immediately on the standard printer $param=($dialog ? 'true' : 'false'); $script="print($param);"; $this->IncludeJS($script); } function AutoPrintToPrinter($server, $printer, $dialog=false) { //Print on a shared printer (requires at least Acrobat 6) $script = "var pp = getPrintParams();"; if($dialog) $script .= "pp.interactive = pp.constants.interactionLevel.full;"; else $script .= "pp.interactive = pp.constants.interactionLevel.automatic;"; $script .= "pp.printerName = '\\\\\\\\".$server."\\\\".$printer."';"; $script .= "print(pp);"; $this->IncludeJS($script); } }
[+]
..
[+]
classes
[+]
ckeditor
[-] pdfjs.php
[edit]
[-] mpdf.zip
[edit]
[+]
mpdf