PMCORE-4007
This commit is contained in:
@@ -799,15 +799,13 @@ class OutputDocument extends BaseOutputDocument
|
|||||||
// Check and prepare the fonts path used by TCPDF library
|
// Check and prepare the fonts path used by TCPDF library
|
||||||
self::checkTcPdfFontsPath();
|
self::checkTcPdfFontsPath();
|
||||||
|
|
||||||
// Including the basic configuration for the TCPDF library
|
|
||||||
require_once PATH_TRUNK . "vendor" . PATH_SEP . "tecnickcom" . PATH_SEP . "tcpdf" . PATH_SEP . "config" . PATH_SEP . "tcpdf_config.php";
|
|
||||||
|
|
||||||
// Initialize variables
|
// Initialize variables
|
||||||
$nrt = ["\n", "\r", "\t"];
|
$nrt = ["\n", "\r", "\t"];
|
||||||
$nrtHtml = ["(n /)", "(r /)", "(t /)"];
|
$nrtHtml = ["(n /)", "(r /)", "(t /)"];
|
||||||
$outputType = 2;
|
$outputType = 2;
|
||||||
$orientation = ($landscape == false) ? PDF_PAGE_ORIENTATION : 'L';
|
// Page orientation (P=portrait, L=landscape).
|
||||||
$media = (isset($properties['media'])) ? $properties['media'] : PDF_PAGE_FORMAT;
|
$orientation = ($landscape == false) ? 'P' : 'L';
|
||||||
|
$media = (isset($properties['media'])) ? $properties['media'] : 'A4';
|
||||||
$lang = (defined('SYS_LANG')) ? SYS_LANG : 'en';
|
$lang = (defined('SYS_LANG')) ? SYS_LANG : 'en';
|
||||||
$strContentAux = str_replace($nrt, $nrtHtml, $content);
|
$strContentAux = str_replace($nrt, $nrtHtml, $content);
|
||||||
$content = null;
|
$content = null;
|
||||||
|
|||||||
@@ -212,7 +212,6 @@ switch ($request) {
|
|||||||
echo $message;
|
echo $message;
|
||||||
break;
|
break;
|
||||||
case 'captcha':
|
case 'captcha':
|
||||||
require_once PATH_TRUNK . 'vendor/dapphp/securimage/securimage.php';
|
|
||||||
$img = new Securimage();
|
$img = new Securimage();
|
||||||
$img->show();
|
$img->show();
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user