PMCORE-4007

This commit is contained in:
Luciana Nuñez
2022-10-07 10:28:17 -04:00
parent c9e5417750
commit b8f3b837c0
2 changed files with 3 additions and 6 deletions

View File

@@ -799,15 +799,13 @@ class OutputDocument extends BaseOutputDocument
// Check and prepare the fonts path used by TCPDF library
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
$nrt = ["\n", "\r", "\t"];
$nrtHtml = ["(n /)", "(r /)", "(t /)"];
$outputType = 2;
$orientation = ($landscape == false) ? PDF_PAGE_ORIENTATION : 'L';
$media = (isset($properties['media'])) ? $properties['media'] : PDF_PAGE_FORMAT;
// Page orientation (P=portrait, L=landscape).
$orientation = ($landscape == false) ? 'P' : 'L';
$media = (isset($properties['media'])) ? $properties['media'] : 'A4';
$lang = (defined('SYS_LANG')) ? SYS_LANG : 'en';
$strContentAux = str_replace($nrt, $nrtHtml, $content);
$content = null;

View File

@@ -212,7 +212,6 @@ switch ($request) {
echo $message;
break;
case 'captcha':
require_once PATH_TRUNK . 'vendor/dapphp/securimage/securimage.php';
$img = new Securimage();
$img->show();
break;