From 7adb8e90ef83be1c37176dccbcc6ce1a488805e5 Mon Sep 17 00:00:00 2001 From: wlx Date: Mon, 27 Jul 2009 04:07:01 +0000 Subject: [PATCH] upgrade fpdi to version 1.3 with chinese unicode support. --- include/fpdi/fpdf_tpl.php | 2 +- include/fpdi/fpdi.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/fpdi/fpdf_tpl.php b/include/fpdi/fpdf_tpl.php index 429e330e..fe36d29f 100644 --- a/include/fpdi/fpdf_tpl.php +++ b/include/fpdi/fpdf_tpl.php @@ -17,7 +17,7 @@ // limitations under the License. // -class FPDF_TPL extends FPDF { +class FPDF_TPL extends PDF_Unicode { /** * Array of Tpl-Data * @var array diff --git a/include/fpdi/fpdi.php b/include/fpdi/fpdi.php index 683fe3f4..5b8150b1 100644 --- a/include/fpdi/fpdi.php +++ b/include/fpdi/fpdi.php @@ -20,9 +20,9 @@ define('FPDI_VERSION','1.3'); // Check for TCPDF and remap TCPDF to FPDF -//if (class_exists('TCPDF')) { -// require_once('fpdi2tcpdf_bridge.php'); -//} +if (class_exists('TCPDF',false)) { + require_once('fpdi2tcpdf_bridge.php'); +} require_once('fpdf_tpl.php'); require_once('fpdi_pdf_parser.php');