X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Fincludes%2Fclass.pdf.inc;h=1fcda8596dbac483deff83eb50074df02105ccfa;hb=45b9663b6305cb70c2f3f1782406232d3ed0d755;hp=7c182017526dc8cd406e95c39f3946f55e719ed5;hpb=a7644a40245495d37dd13871b14e593f3c5e21ae;p=fa-stable.git diff --git a/reporting/includes/class.pdf.inc b/reporting/includes/class.pdf.inc index 7c182017..1fcda859 100644 --- a/reporting/includes/class.pdf.inc +++ b/reporting/includes/class.pdf.inc @@ -1,4 +1,14 @@ . +***********************************************************************/ /* This class is an extension to the tcpdf class using a syntax that the original reports were written in (the R &OS pdf.php class) - due to easily portation this wrapper class @@ -58,8 +68,8 @@ class Cpdf extends TCPDF { $l = array('a_meta_charset' => 'ISO-8859-1', 'a_meta_dir' => 'ltr', 'a_meta_language' => 'en_GB', 'w_page' => 'page'); $enc = $l['a_meta_charset']; $uni = ($enc == 'UTF-8' || $enc == 'GB2312' ? true : false); - if ($enc == "GB2312") - ini_set("memory_limit", "25M"); + if ($uni) + ini_set("memory_limit", "48M"); $this->TCPDF('P', 'pt', $pageSize, $uni, $enc); $this->setLanguageArray($l); $this->setPrintHeader(false); @@ -202,16 +212,12 @@ class Cpdf extends TCPDF { { TCPDF::Ellipse($x0, $y0, $r1, $r2, $angle, $astart. $afinish, ($close?'C':''), "", "", $nSeg); } + function Stream() { TCPDF::Output('', 'I'); } - function Output() - { - return TCPDF::Output('','S'); - } - function calcTextWrap($txt, $width, $spacebreak=false) { $ret = "";