From: Rafael C. <raf...@gm...> - 2016-04-01 00:08:26
|
Hi, No, the old addTextWrap is NOT reliable. The old version uses deprecated PHP functions. In my installation I use a corrected version of "class.pdf.php" (this version can not be upload to the trunk because of incompatibilities with user's form --I don not remember if Andrew Galuski had documented those troubles--). It is better to completely move to Nicola Asuni 's TCPDF: reliable, safety, and more functionalities (you can direct convert a html to pdf; Text() function and other functions can replace addTextWrap with text hyphenation, internationalization, etc.). THE PROBLEM: if you update the TCPDF version in webERP with the TCPDF current version, you will have errors (somewhere, something is different --a parameter missing?--). Differences between addTextWrap() and AddText(): addTextWrap() can handle multiples lines; AddText() only can handle one line. Also, the distance from the bottom-left corner are measured in different ways (WARNING!: there are not equal). I have to review my documentation about this matter. But by my memory, this is that I remember. Best regards, Rafael. ---------- 2016-03-31 17:07 GMT-06:00 ExsonQu <hex...@gm...>: > *Hi, all,* > > Is addTextWrap is reliable? > > I've received several reports about the failure about this. It > seems we have to change this one to AddText(), but it is difficult to > handle > the text position. > > Thanks and best regards! > > Exson > > > > > -- > View this message in context: > http://weberp-accounting.1478800.n4.nabble.com/PDF-generator-in-webERP-tp4658061p4658570.html > Sent from the web-ERP-developers mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Transform Data into Opportunity. > Accelerate data analysis in your applications with > Intel Data Analytics Acceleration Library. > Click to learn more. > http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140 > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > |