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');