BUG 0000 Various Settings for PDF generation on TCPDF IMPROVEMENT

- Added new types of fonts, Arial and Times New Roman,  changed folder of  temporary files to a shared cache.
This commit is contained in:
Hector Cortez
2013-01-24 13:51:56 -04:00
parent 8bbab35191
commit 07ff670015
30 changed files with 145 additions and 5 deletions

View File

@@ -91,7 +91,9 @@ if (!defined('K_TCPDF_EXTERNAL_CONFIG')) {
/** /**
* cache directory for temporary files (full path) * cache directory for temporary files (full path)
*/ */
define ('K_PATH_CACHE', K_PATH_MAIN.'cache/'); //define ('K_PATH_CACHE', K_PATH_MAIN.'cache/');
G::mk_dir(PATH_DATA_REPORTS . 'cache/');
define ('K_PATH_CACHE', PATH_DATA_REPORTS.'cache/');
/** /**
* cache directory for temporary files (url path) * cache directory for temporary files (url path)
@@ -186,7 +188,8 @@ if (!defined('K_TCPDF_EXTERNAL_CONFIG')) {
/** /**
* default main font name * default main font name
*/ */
define ('PDF_FONT_NAME_MAIN', 'helvetica'); //define ('PDF_FONT_NAME_MAIN', 'helvetica');
define ('PDF_FONT_NAME_MAIN', 'timesnewroman');
/** /**
* default main font size * default main font size
@@ -196,7 +199,8 @@ if (!defined('K_TCPDF_EXTERNAL_CONFIG')) {
/** /**
* default data font name * default data font name
*/ */
define ('PDF_FONT_NAME_DATA', 'helvetica'); //define ('PDF_FONT_NAME_DATA', 'helvetica');
define ('PDF_FONT_NAME_DATA', 'arial');
/** /**
* default data font size * default data font size

Binary file not shown.

File diff suppressed because one or more lines are too long

BIN
gulliver/thirdparty/tcpdf/fonts/arial.z vendored Normal file

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

BIN
gulliver/thirdparty/tcpdf/fonts/arialb.z vendored Normal file

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

BIN
gulliver/thirdparty/tcpdf/fonts/ariali.z vendored Normal file

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@@ -25356,7 +25356,8 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
} }
// pixels // pixels
case 'px': { case 'px': {
$retval = $this->pixelsToUnits($value); // $retval = $this->pixelsToUnits($value);
$retval = $value / $k;
break; break;
} }
} }

View File

@@ -892,7 +892,7 @@ class OutputDocument extends BaseOutputDocument
// Print text using writeHTMLCell() // Print text using writeHTMLCell()
// $pdf->writeHTMLCell($w=0, $h=0, $x='', $y='', $html, $border=0, $ln=1, $fill=0, $reseth=true, $align='', $autopadding=true); // $pdf->writeHTMLCell($w=0, $h=0, $x='', $y='', $html, $border=0, $ln=1, $fill=0, $reseth=true, $align='', $autopadding=true);
$pdf->writeHTML($sContent); $pdf->writeHTML($sContent, false, false, false, false, '');
// --------------------------------------------------------- // ---------------------------------------------------------
// Close and output PDF document // Close and output PDF document