Work on FPDF replacement by TCPDF
This commit is contained in:
parent
660ffdfea5
commit
046e52a7a0
@ -19,6 +19,21 @@
|
|||||||
|
|
||||||
define('FPDI_VERSION','1.3.2');
|
define('FPDI_VERSION','1.3.2');
|
||||||
|
|
||||||
|
|
||||||
|
/* Begin DOLCHANGE Added by Regis */
|
||||||
|
// height of cell repect font height
|
||||||
|
define("K_CELL_HEIGHT_RATIO", 1.25);
|
||||||
|
// Repertoire des documents de fckeditor
|
||||||
|
if (! empty($conf->fckeditor->dir_output)) define ("K_PATH_CACHE", $conf->fckeditor->dir_output);
|
||||||
|
// url qui sera substituer par le K_PATH_CACHE lorsqu'une image sera integree au pdf
|
||||||
|
if (defined('DOL_URL_ROOT')) define ("K_PATH_URL_CACHE", DOL_URL_ROOT."/document.php?modulepart=editor&file=");
|
||||||
|
/* End DOLCHANGE Added by Regis */
|
||||||
|
|
||||||
|
// DOLCHANGE LDR
|
||||||
|
require_once(DOL_DOCUMENT_ROOT.'/includes/fpdf/fpdf/fpdf.php');
|
||||||
|
//require_once(DOL_DOCUMENT_ROOT.'/includes/tcpdf/tcpdf.php');
|
||||||
|
|
||||||
|
|
||||||
// Check for TCPDF and remap TCPDF to FPDF
|
// Check for TCPDF and remap TCPDF to FPDF
|
||||||
$__tmp = version_compare(phpversion(), "5") == -1 ? array('TCPDF') : array('TCPDF', false);
|
$__tmp = version_compare(phpversion(), "5") == -1 ? array('TCPDF') : array('TCPDF', false);
|
||||||
if (call_user_func_array('class_exists', $__tmp)) {
|
if (call_user_func_array('class_exists', $__tmp)) {
|
||||||
|
|||||||
@ -17,21 +17,6 @@
|
|||||||
* *
|
* *
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* Begin DOLCHANGE Added by Regis */
|
|
||||||
// height of cell repect font height
|
|
||||||
define("K_CELL_HEIGHT_RATIO", 1.25);
|
|
||||||
// Repertoire des documents de fckeditor
|
|
||||||
if (! empty($conf->fckeditor->dir_output)) define ("K_PATH_CACHE", $conf->fckeditor->dir_output);
|
|
||||||
// url qui sera substituer par le K_PATH_CACHE lorsqu'une image sera integree au pdf
|
|
||||||
if (defined('DOL_URL_ROOT')) define ("K_PATH_URL_CACHE", DOL_URL_ROOT."/document.php?modulepart=editor&file=");
|
|
||||||
/* End DOLCHANGE Added by Regis */
|
|
||||||
|
|
||||||
// DOLCHANGE
|
|
||||||
require_once(DOL_DOCUMENT_ROOT.'/includes/fpdf/fpdf/fpdf.php');
|
|
||||||
//require_once(DOL_DOCUMENT_ROOT.'/includes/tcpdf/tcpdf.php');
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
require_once('fpdi.php');
|
require_once('fpdi.php');
|
||||||
|
|
||||||
class FPDI_Protection extends FPDI {
|
class FPDI_Protection extends FPDI {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user