fixed problems if other version og fpdf is in lib path
This commit is contained in:
parent
d5bc86835d
commit
0d7f704de0
|
@ -54,7 +54,7 @@ $line_width = LAMPDF_LINEWIDTH;
|
||||||
function createModulePDF($accounts,$pdf_structure="default") {
|
function createModulePDF($accounts,$pdf_structure="default") {
|
||||||
|
|
||||||
/** PDF generator class */
|
/** PDF generator class */
|
||||||
include_once("fpdf.php");
|
include_once(dirname(__FILE__) . "/fpdf.php");
|
||||||
/** Unicode support for FPDF */
|
/** Unicode support for FPDF */
|
||||||
include_once("ufpdf.php");
|
include_once("ufpdf.php");
|
||||||
/** LAM PDF generator class */
|
/** LAM PDF generator class */
|
||||||
|
@ -73,7 +73,7 @@ function createModulePDF($accounts,$pdf_structure="default") {
|
||||||
$fontName = "BitstreamVeraSans-Roman"; // TODO: load font name from XML file
|
$fontName = "BitstreamVeraSans-Roman"; // TODO: load font name from XML file
|
||||||
|
|
||||||
// Create a new PDF file acording to the account type
|
// Create a new PDF file acording to the account type
|
||||||
$pdf = new LamPDF($load['page_definitions'],$fontName);
|
$pdf = new lamPDF($load['page_definitions'],$fontName);
|
||||||
|
|
||||||
// Loop over each account and add a new page in the PDF file for it
|
// Loop over each account and add a new page in the PDF file for it
|
||||||
foreach($accounts as $account) {
|
foreach($accounts as $account) {
|
||||||
|
|
|
@ -26,8 +26,6 @@ if(!class_exists('UFPDF'))
|
||||||
{
|
{
|
||||||
define('UFPDF_VERSION','0.1');
|
define('UFPDF_VERSION','0.1');
|
||||||
|
|
||||||
include_once 'fpdf.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Main UFPDF class for creating Unicode PDF documents
|
* Main UFPDF class for creating Unicode PDF documents
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue