You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(20) |
Aug
(21) |
Sep
(12) |
Oct
(2) |
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(3) |
Feb
(46) |
Mar
(65) |
Apr
(49) |
May
(33) |
Jun
(5) |
Jul
(79) |
Aug
(228) |
Sep
(347) |
Oct
(272) |
Nov
(270) |
Dec
(424) |
2005 |
Jan
(549) |
Feb
(232) |
Mar
(134) |
Apr
(103) |
May
(57) |
Jun
(74) |
Jul
(67) |
Aug
(45) |
Sep
(99) |
Oct
(187) |
Nov
(238) |
Dec
(127) |
2006 |
Jan
(81) |
Feb
(137) |
Mar
(46) |
Apr
(55) |
May
(62) |
Jun
(152) |
Jul
(137) |
Aug
(154) |
Sep
(176) |
Oct
(104) |
Nov
(65) |
Dec
(64) |
2007 |
Jan
(56) |
Feb
(303) |
Mar
(88) |
Apr
(80) |
May
(72) |
Jun
(20) |
Jul
(47) |
Aug
(28) |
Sep
(113) |
Oct
(49) |
Nov
(89) |
Dec
(24) |
2008 |
Jan
(24) |
Feb
(61) |
Mar
(43) |
Apr
(51) |
May
(12) |
Jun
(10) |
Jul
(49) |
Aug
(26) |
Sep
(7) |
Oct
(50) |
Nov
(19) |
Dec
(15) |
2009 |
Jan
(87) |
Feb
(144) |
Mar
(54) |
Apr
(72) |
May
(32) |
Jun
(23) |
Jul
(27) |
Aug
(90) |
Sep
(349) |
Oct
(174) |
Nov
(320) |
Dec
(110) |
2010 |
Jan
(162) |
Feb
(39) |
Mar
(80) |
Apr
(126) |
May
(45) |
Jun
(44) |
Jul
(75) |
Aug
(32) |
Sep
(100) |
Oct
(57) |
Nov
(49) |
Dec
(125) |
2011 |
Jan
(72) |
Feb
(41) |
Mar
(63) |
Apr
(18) |
May
(123) |
Jun
(100) |
Jul
(96) |
Aug
(84) |
Sep
(83) |
Oct
(39) |
Nov
(166) |
Dec
(103) |
2012 |
Jan
(158) |
Feb
(148) |
Mar
(77) |
Apr
(43) |
May
(126) |
Jun
(82) |
Jul
(67) |
Aug
(28) |
Sep
(109) |
Oct
(30) |
Nov
(23) |
Dec
(34) |
2013 |
Jan
(14) |
Feb
(16) |
Mar
(7) |
Apr
(79) |
May
(76) |
Jun
(13) |
Jul
(76) |
Aug
(36) |
Sep
(22) |
Oct
(35) |
Nov
(167) |
Dec
(93) |
2014 |
Jan
(64) |
Feb
(14) |
Mar
(57) |
Apr
(63) |
May
(60) |
Jun
(15) |
Jul
(24) |
Aug
(19) |
Sep
(56) |
Oct
(70) |
Nov
(45) |
Dec
(52) |
2015 |
Jan
(56) |
Feb
(73) |
Mar
(34) |
Apr
(11) |
May
(24) |
Jun
(19) |
Jul
(11) |
Aug
(8) |
Sep
(25) |
Oct
(22) |
Nov
(38) |
Dec
(7) |
2016 |
Jan
(7) |
Feb
(34) |
Mar
(17) |
Apr
(10) |
May
(17) |
Jun
(7) |
Jul
(17) |
Aug
(31) |
Sep
(3) |
Oct
(34) |
Nov
(5) |
Dec
(2) |
2017 |
Jan
|
Feb
(4) |
Mar
(18) |
Apr
(6) |
May
(10) |
Jun
(13) |
Jul
|
Aug
|
Sep
|
Oct
(6) |
Nov
|
Dec
(1) |
2018 |
Jan
(2) |
Feb
|
Mar
(3) |
Apr
(10) |
May
(5) |
Jun
|
Jul
(7) |
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
(2) |
2019 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
(6) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
|
Dec
(3) |
2021 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(2) |
2022 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2023 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2024 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(30) |
Nov
|
Dec
(2) |
From: Rafael C. <raf...@gm...> - 2015-03-02 17:54:41
|
Hi all, In SelectProduct.php, we had the decimal places of gross profit fixed to ONE decimal. I changed to the number of decimal places for the default currency. My goal: We want to have 2 decimals for the gross profit, or to change it at will. Tim wrote me that in Uganda where there are about 4500 shillings to the pound, it makes sense to have currency figure with zero decimal places but they want to see the gross profit percentage with some decimal places. So, to fix this, we can: 1. Reverse change: That is, to use "1" instead of "$_SESSION['CompanyRecord']['decimalplaces']" (as previous version). 2. If enough people are interested in change at will the quantity of decimal places for the gross profit, to add a parameter to set-up this. Let me know if you are interested on (2). Otherwise I will work on (1). Best regards, Rafael. |
From: Rafael C. <raf...@gm...> - 2015-03-02 17:05:19
|
Hi, Any of you have worked to show a statement of cash flows of the company for a range of periods entered ? I am looking for a general purpose script to generate a statement of cash flows. Jonathan Kiranga has developed that module in another application, that ran on vfp FoxPro but not in webERP. In this moment, I have two groups of requirements very different: * Accounting people: They want periods in months (at end-of-month, by group of months) like other statements in webERP (statement of financial position, and statement of comprehensive income), and a net use and generation (each account shown as cash-in or a cash-out). * Treasury and Audit people: They want periods in days (at end-of-day, by group of days) and a separated use and generation (for each account, the cash generated and the cash used in different lines). I will appreciate any info, comment or help about this topic. Best regards, Rafael. |
From: Rafael C. <raf...@gm...> - 2015-03-02 16:38:08
|
Hi Jonathan, Thank you for you answer. I am working on both: * "The statement of changes in equity, often referred to as statement of retained earnings, details the change in owners' equity over an accounting period by presenting the movement in reserves comprising the shareholders' equity. The purpose of the statement of changes in equity is to show the changes in a company's retained earnings during the period being reported." * "The statement of cash flows, also known as cash flow statement, reports how changes in balance sheet accounts and income affect cash and cash equivalents, and breaks the analysis down to operating, investing and financing activities. The purpose of the statement of cash flows is to show whether the company generated and used cash during the period being reported." ( I enclosed the draft text from div class="page_help_text" of scripts; help appreciated! ). In this moment, the script for the statement of changes in equity seems to have less requirements than the script for statement of cash flows.Therefore, I decided to work on it first. Some time ago I do not work in FoxPro, but any help is appreciated. Best regards, Rafael. 2015-03-02 2:58 GMT-06:00 JONATHAN KIRANGA <jon...@gm...>: > Sounds like funds flow statement. I have developed that module in another > application, that ran on vfp FoxPro but not in weberp > On 1 Mar 2015 05:23, "Rafael Chacón" <raf...@gm...> > wrote: > >> Hi, >> >> Any of you have worked to show a statement of changes in equity of the >> company for a range of periods entered ? >> >> I am looking for a general purpose script to generate a statement of >> changes in equity. I will appreciate any info about this topic. >> >> Best regards, Rafael. >> >> >> ------------------------------------------------------------------------------ >> Dive into the World of Parallel Programming The Go Parallel Website, >> sponsored >> by Intel and developed in partnership with Slashdot Media, is your hub >> for all >> things parallel software development, from weekly thought leadership >> blogs to >> news, videos, case studies, tutorials and more. Take a look and join the >> conversation now. http://goparallel.sourceforge.net/ >> _______________________________________________ >> Web-erp-developers mailing list >> Web...@li... >> https://lists.sourceforge.net/lists/listinfo/web-erp-developers >> >> > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming The Go Parallel Website, > sponsored > by Intel and developed in partnership with Slashdot Media, is your hub for > all > things parallel software development, from weekly thought leadership blogs > to > news, videos, case studies, tutorials and more. Take a look and join the > conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > |
From: JONATHAN K. <jon...@gm...> - 2015-03-02 08:58:31
|
Sounds like funds flow statement. I have developed that module in another application, that ran on vfp FoxPro but not in weberp On 1 Mar 2015 05:23, "Rafael Chacón" <raf...@gm...> wrote: > Hi, > > Any of you have worked to show a statement of changes in equity of the > company for a range of periods entered ? > > I am looking for a general purpose script to generate a statement of > changes in equity. I will appreciate any info about this topic. > > Best regards, Rafael. > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming The Go Parallel Website, > sponsored > by Intel and developed in partnership with Slashdot Media, is your hub for > all > things parallel software development, from weekly thought leadership blogs > to > news, videos, case studies, tutorials and more. Take a look and join the > conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > |
From: Rafael C. <raf...@gm...> - 2015-03-01 02:26:51
|
http://www.weberp.org/weberp/doc/Manual/ManualContents.php?ViewTopic=Tax (weberp, all in lowercase). 2015-02-28 16:36 GMT-06:00 Phil Daintree <ph...@lo...>: > The label printing options are quite limited and needs more development. > > http://www.weberp.org/webERP/doc/Manual/ManualContents.php?ViewTopic=Tax > > Phil > > Phil Daintree > Logic Works Ltd - +64 (0)275 567890 > http://www.logicworks.co.nz > > On 28/02/15 21:48, baliboss wrote: > > Dear Phil, Tim and webERP user, > > > > I want to ask, > > > > 1. Can I print bar code repeatedly just for one item code without click > > Button "Print Labels" again and again ? > > > > 2. How to define TAX for a Purchase Order more than one and total of it > be > > created as standard costing for this item > > > > but this TAX not to supplier? > > > > example : Price of Item *FB101 1000 USD* and contain TAX like the > following > > line, > > - Bea Masuk 5 % > > - PPN 10 % > > - Cukai 10 % > > - pph 2,5% > > --------------------------+ > > (details TAX pay as TAX not pay to suppliers) > > > > Regards, > > Ari / baliboss.com > > > > > > > > ----- > > Baliboss > > Bali Open Source Solution > > www.baliboss.com > > -- > > View this message in context: > http://weberp-accounting.1478800.n4.nabble.com/Print-label-repeatedly-and-More-than-one-TAX-for-a-Purchase-Order-tp4658127.html > > Sent from the web-ERP-developers mailing list archive at Nabble.com. > > > > > ------------------------------------------------------------------------------ > > Dive into the World of Parallel Programming The Go Parallel Website, > sponsored > > by Intel and developed in partnership with Slashdot Media, is your hub > for all > > things parallel software development, from weekly thought leadership > blogs to > > news, videos, case studies, tutorials and more. Take a look and join the > > conversation now. http://goparallel.sourceforge.net/ > > _______________________________________________ > > Web-erp-developers mailing list > > Web...@li... > > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > > > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming The Go Parallel Website, > sponsored > by Intel and developed in partnership with Slashdot Media, is your hub for > all > things parallel software development, from weekly thought leadership blogs > to > news, videos, case studies, tutorials and more. Take a look and join the > conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > |
From: Rafael C. <raf...@gm...> - 2015-03-01 02:22:31
|
Hi, Any of you have worked to show a statement of changes in equity of the company for a range of periods entered ? I am looking for a general purpose script to generate a statement of changes in equity. I will appreciate any info about this topic. Best regards, Rafael. |
From: Phil D. <ph...@lo...> - 2015-02-28 22:36:45
|
The label printing options are quite limited and needs more development. http://www.weberp.org/webERP/doc/Manual/ManualContents.php?ViewTopic=Tax Phil Phil Daintree Logic Works Ltd - +64 (0)275 567890 http://www.logicworks.co.nz On 28/02/15 21:48, baliboss wrote: > Dear Phil, Tim and webERP user, > > I want to ask, > > 1. Can I print bar code repeatedly just for one item code without click > Button "Print Labels" again and again ? > > 2. How to define TAX for a Purchase Order more than one and total of it be > created as standard costing for this item > > but this TAX not to supplier? > > example : Price of Item *FB101 1000 USD* and contain TAX like the following > line, > - Bea Masuk 5 % > - PPN 10 % > - Cukai 10 % > - pph 2,5% > --------------------------+ > (details TAX pay as TAX not pay to suppliers) > > Regards, > Ari / baliboss.com > > > > ----- > Baliboss > Bali Open Source Solution > www.baliboss.com > -- > View this message in context: http://weberp-accounting.1478800.n4.nabble.com/Print-label-repeatedly-and-More-than-one-TAX-for-a-Purchase-Order-tp4658127.html > Sent from the web-ERP-developers mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming The Go Parallel Website, sponsored > by Intel and developed in partnership with Slashdot Media, is your hub for all > things parallel software development, from weekly thought leadership blogs to > news, videos, case studies, tutorials and more. Take a look and join the > conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > |
From: baliboss <it...@ba...> - 2015-02-28 09:12:27
|
Dear Phil, Tim and webERP user, I want to ask, 1. Can I print bar code repeatedly just for one item code without click Button "Print Labels" again and again ? 2. How to define TAX for a Purchase Order more than one and total of it be created as standard costing for this item but this TAX not to supplier? example : Price of Item *FB101 1000 USD* and contain TAX like the following line, - Bea Masuk 5 % - PPN 10 % - Cukai 10 % - pph 2,5% --------------------------+ (details TAX pay as TAX not pay to suppliers) Regards, Ari / baliboss.com ----- Baliboss Bali Open Source Solution www.baliboss.com -- View this message in context: http://weberp-accounting.1478800.n4.nabble.com/Print-label-repeatedly-and-More-than-one-TAX-for-a-Purchase-Order-tp4658127.html Sent from the web-ERP-developers mailing list archive at Nabble.com. |
From: ichmon21 <chr...@gm...> - 2015-02-25 12:40:59
|
Even I also got this float accuracy problem when I solve my accounts queries! I am going to clear my doubt from Professor Aloke Ghosh <https://www.linkedin.com/pub/al-aloke-ghosh-ph-d/7/75a/9ba> , as I heard he clear everything in detail as no one can forget that in future. I wish he can clear my doubt too. -- View this message in context: http://weberp-accounting.1478800.n4.nabble.com/Float-accuracy-problem-tp4657899p4658126.html Sent from the web-ERP-developers mailing list archive at Nabble.com. |
From: Andrew G. <aga...@re...> - 2015-02-20 15:24:25
|
This fixed my issue: Replace $c=$s[$I}; with $c=mb_substr($s, $i, 1, 'UTF-8'); Thanks so MUCH! ________________________________ From: Rafael Chacón <raf...@gm...> Sent: Tuesday, February 17, 2015 2:08 PM To: webERP Developers Subject: Re: [WebERP-developers] PDF generator in webERP. Hi Andrew: Yes, AddTextWrap() is a nightmare. Besides the bugs I mentioned, there are other things that can create problems: - $s{$i} and $s[$i] are not multi-byte safe. It is better to use: mb_substr($s, $i, 1, 'UTF-8'), with encoding included. - Instead of $nb=mb_strlen($s), it is better to use $nb=mb_strlen($s, 'UTF-8'), with encoding included. - Depending on PHP version, mb_internal_encoding('UTF-8') does not work as expected. Also other multi-byte functions (mb_substr, mb_strlen) do not work properly. See (as example): http://php.net/ChangeLog-5.php version 5.4.8 release notes. I suggest you --if you want to keep this AddTextWrap()-- to replace all functions with multi-byte safe functions and to update php version (get late fixes to mb functions). Best regards, Rafael. 2015-02-17 12:54 GMT-06:00 Andrew Galuski <aga...@re...<mailto:aga...@re...>>: My problem is actually that the variable $nb is set to mb_strlen($s);. Since the ® character is counted as 1 by mb_strlen nb ends up being 1 less than the actual string length. So when I iterate while $i<$nb I always end up with a break if I have a multibyte character in the string (even though it is short enough to fit). If I change to $nb=iconv_strlen($s); then $nb is equal to the actual string length and I fit on 1 line (but I no longer get the extra line after. I do get the extra line after if no multi-byte characters are in the string. I think I have been on this too long. Best Regards, Andrew Galuski ResMart LLC. 817.615.2038 (Office) 817.821.0544 (Cell) www.resmart.com<http://www.resmart.com> [resmart_logo] From: Rafael Chacón [mailto:raf...@gm...<mailto:raf...@gm...>] Sent: Friday, February 13, 2015 2:14 PM To: webERP Developers Subject: Re: [WebERP-developers] PDF generator in webERP. Hi Andrew, Sorry, just I read you messages. Yes, as I said in previous messages, this new AddTextWrap fixes the extra blank line bug. But if any user like this extra blank line bug, there is lot of work adding a extra line to reports. About the problem with your text: I think the text does not wrap because it is using a non-breaking space character instead of a white space character. A possible fix: $nbsp = html_entity_decode(' ', ENT_QUOTES, 'UTF-8');// Converts non-breaking space HTML entity to their applicable character. $text = str_replace($nbsp,' ',$text); Best regards, Rafael. 2015-02-13 13:53 GMT-06:00 Rafael Chacón <raf...@gm...<mailto:raf...@gm...>>: Hi, I enclose a uptdate to new addTextWrap. Changes: 1. Sets encoding 'UTF-8' in all multi-byte functions. 2. Adds the replace of '\n' text with a line feed character. This is to fix the possible introduction of a '\n' text instead of a line feed character. 3. Adds the delete of '\r' text. This is to fix the possible introduction of a '\r' text instead of a carriage return character. 4. Replaces hard hypen with soft hyphen as possible break position. 5. Privileges the use of mb_substr() instead of $text{$i} (deprecated? not multi-byte safe?) and $text[$i] (not multi-byte safe?). 6. Uses "greater than or equal to" comparison instead of "greater than" to cover the possibility of exact matches to exit for() loop. 7. Uses "less than or equal to" comparison instead of "less than" to cover the possibility of exact matches to exit for() loop. 8. Excludes the break character from the returned string. 9. Improves documentation and formatting. Best regards, Rafael. 2015-02-13 9:59 GMT-06:00 Andrew Galuski <aga...@re...<mailto:aga...@re...>>: Actually. My issue seems to be with special characters. Any help is appreciated. I can’t seem to figure out why. This Doesn’t Wrap on the invoice TEST trademark ABC P-1700 CL 2612MPC This does wrap (Much Shorter but Trademark sign inside of it). I don’t want it to wrap. TEST ® ABC P-1700 CL 2612MPC I can make 1 modification that fixes it but I am unsure why it is needed and again not sure of what else it will affect. Original code line 293 ‘while($i<$nb)’ This code fixes it ‘while($i<=$nb)’ where ‘$nb=mb_strlen($s);’ Ideas? Best Regards, Andrew Galuski ResMart LLC. 817.615.2038 (Office) 817.821.0544 (Cell) www.resmart.com<http://www.resmart.com> [resmart_logo] From: Andrew Galuski [mailto:aga...@re...<mailto:aga...@re...>] Sent: Friday, February 13, 2015 9:48 AM To: webERP Developers Subject: Re: [WebERP-developers] PDF generator in webERP. The missing spaces would make me have to alter too many forms I believe but it is nice work. I think locally I can fix my issue with another small change. Best Regards, Andrew Galuski ResMart LLC. 817.615.2038 (Office) 817.821.0544 (Cell) www.resmart.com<http://www.resmart.com> [resmart_logo] From: Rafael Chacón [mailto:raf...@gm...] Sent: Wednesday, February 11, 2015 4:45 PM To: webERP Developers Subject: Re: [WebERP-developers] PDF generator in webERP. Hi Andrew, I enclose my new AddTextWrap. Inside ~/includes/class.pdf.php, replace AddTextWrap lines (80-169) with lines 3-66 of the included file. Comments: * I'm testing with last version of Nicola Asuni's TCPDF. * It is possible to replace line 56 ("$textwidth += $this->GetStringWidth($c);") with two lines. Those two lines makes the function a little faster in some cases ($text width near the cell width), but slower in other cases ($text width far from the cell width). Best regards, Rafael. 2015-02-11 16:19 GMT-06:00 Andrew Galuski <aga...@re...<mailto:aga...@re...>>: I am trouble shooting the same problem today where it wraps text smaller than the width. The added $s = trim($s).' ';" causes an issue for me. Or you can change a do while loop from < to <= $nb and it appears to fix same issue. My worry was testing all existing forms. If you can send me your update I will test it in my environment for all my forms. Sent from my BlackBerry 10 smartphone on the Verizon Wireless 4G LTE network. From: Rafael Chacón Sent: Wednesday, February 11, 2015 3:26 PM To: webERP Developers Reply To: webERP Developers Subject: Re: [WebERP-developers] PDF generator in webERP. Hi Vitaly, Thank you for writing. About "$lines=explode("\r\n",htmlspecialchars_decode($myrow2['narrative']));": This line returns an array of strings, each of which is a substring of $myrow2['narrative'] formed by splitting it on boundaries formed by the characters Carriage_Return ("\r") and Line_Feed ("\n"). It only works for msWindows (Unix-like and Mac OS-10 use Line_Feed; Mac OS up to version 9 uses Carriage_Return). The problem in PrintCustTransPortrait.php (and other reports) is caused by two bugs in AddTextWarp(): 1. Line 108: "$s = trim($s).' ';" (extra blank character -> the extra white line). 2. Lines from 106 to 164: (the logic of the code -> splitting in the last white_space of a segment smaller that the cell width). My purpose in asking if someone "has problem with this function (last line line-feeded before the end) ?" is know who else experiences that problem. I have a new AddTextWrap that fixes both bugs. It is faster and produces PDF files with a slightly smaller size, but --obviously-- it not produce the extra blank line in segments smaller than cell width. Many users like this (no extra blank line) but there are some users who ask me to re-do this extra blank line. I would like other people tests this new AddTextWrap. Although this extra blank line is a bug, I am not comfortable with the idea of a potential change in actual reports. Best regards, Rafael. 2015-02-11 8:25 GMT-06:00 Vitaly Shevkunov <vsh...@so...<mailto:vsh...@so...>>: Rafael, The addTextWrap() does not split the line like that. It is done by this function $lines=explode("\r\n",htmlspecialchars_decode($myrow2['narrative'])); in PrintCustTransPortrait.php Vitaly On 2/10/2015 9:38 PM, Rafael Chacón wrote: HI Phil, Thank you for your answer. Topic 1: From R&OS -> FPDF -> TCPDF. For future pdf development, I think it will be better to directly use TCPDF: (a) Y-coordinate= instead of calculating as from page-bottom to cell-bottom and the script class.pdf.php translates to page-top to cell-top to use tcpdf.php, we can directly use page-top to cell-top and TCPDF; (b) TCPDF has interesting functions (writeHTML, writeHTMLCell, etc.) to write code html (a screen report) into a pdf. Topic 2: tcpdf 6.2.6 has new fonts and others.They may be helpful to give more options to reports. Topic 3: With PrintCustTransPortrait.php (and other reports) I have unexpected breaks (see enclose) and prints lines with whitespace. The problems are inside AddTextWarp(). Regards, Rafael. 2015-02-09 22:34 GMT-06:00 Phil Daintree <ph...@lo...<mailto:ph...@lo...>>: Yes originally used R & OS pdf library. Moved to Oliver Plathey FPDF http://www.fpdf.org/ The class.pdf.php was created to allow the transition to FPDF ... then to TCPDF which was a development of FPDF which allowed utf-8 pdfs - using CID fonts rather than embedding a large monster font file into each pdf - so a small 10k report becomes 2 Meg. This was not considered acceptable. I update tcpdf from time to time. Not sure about 3. Phil Phil Daintree Logic Works Ltd - +64 (0)275 567890 http://www.logicworks.co.nz On 10/02/15 13:37, Rafael Chacón wrote: Hi, Some questions: 1. webERP begun using PHP Pdf creation - R&OS (http://sourceforge.net/projects/pdf-php/). Then, webERP moved to TCPDF (http://www.tcpdf.org/). Javier de Lorenzo-Cáceres wrote ~/includes/class.pdf.php to use TCPDF with "PHP_Pdf_creation_-_R&OS syntax" (old code). Is it right? 2. Someone has updated the ~/includes/tcpdf folder with TCPDF version 6.2.6 ? 3. Someone has replaced the function AddTextWarp() or has problem with this function (last line line-feeded before the end) ? Best regards, Rafael. ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Web-erp-developers mailing list Web...@li...<mailto:Web...@li...> https://lists.sourceforge.net/lists/listinfo/web-erp-developers ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Web-erp-developers mailing list Web...@li...<mailto:Web...@li...> https://lists.sourceforge.net/lists/listinfo/web-erp-developers ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Web-erp-developers mailing list Web...@li...<mailto:Web...@li...> https://lists.sourceforge.net/lists/listinfo/web-erp-developers No virus found in this message. Checked by AVG - www.avg.com<http://www.avg.com> Version: 2015.0.5646 / Virus Database: 4284/9096 - Release Date: 02/11/15 ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Web-erp-developers mailing list Web...@li...<mailto:Web...@li...> https://lists.sourceforge.net/lists/listinfo/web-erp-developers ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Web-erp-developers mailing list Web...@li...<mailto:Web...@li...> https://lists.sourceforge.net/lists/listinfo/web-erp-developers ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Web-erp-developers mailing list Web...@li...<mailto:Web...@li...> https://lists.sourceforge.net/lists/listinfo/web-erp-developers ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk _______________________________________________ Web-erp-developers mailing list Web...@li...<mailto:Web...@li...> https://lists.sourceforge.net/lists/listinfo/web-erp-developers |
From: Phil D. <ph...@lo...> - 2015-02-20 09:05:38
|
Hi Exson, I am thinking the best solution for this is to add freight - as a service item - to the RMA - so it can be recovered in the credit note required from the supplier. I don't think it is appropriate to revalue the stock including this freight cost as it is an expense and recoverable (hopefully) from the supplier. Phil Phil Daintree Logic Works Ltd - +64 (0)275 567890 http://www.logicworks.co.nz On 20/02/15 10:49, ExsonQu wrote: > *Hi, Phil,* > > Thank you for your efforts. > > I have a question about relative topic. How should we handle the > related shipment charge? For instance, we have allocated shipment charge to > items shipped, the if we return those items to suppliers, do we need to > adjust cost of this part? > > Thanks and best regards! > > Exson > > > > -- > View this message in context: http://weberp-accounting.1478800.n4.nabble.com/RMA-tp4658116p4658117.html > Sent from the web-ERP-developers mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & more > Get technology previously reserved for billion-dollar corporations, FREE > http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > |
From: ExsonQu <hex...@gm...> - 2015-02-19 21:56:39
|
*Hi, Phil,* Thank you for your efforts. I have a question about relative topic. How should we handle the related shipment charge? For instance, we have allocated shipment charge to items shipped, the if we return those items to suppliers, do we need to adjust cost of this part? Thanks and best regards! Exson -- View this message in context: http://weberp-accounting.1478800.n4.nabble.com/RMA-tp4658116p4658117.html Sent from the web-ERP-developers mailing list archive at Nabble.com. |
From: Phil D. <ph...@lo...> - 2015-02-18 08:59:57
|
There are two parts to RMA - when we are returning goods to a supplier/vendor .... and the other side is when customers return goods to us :-( I started on a spec for the former at http://www.weberp.org/wiki/ReturnMerchandiseAuthorisation appreciate any input - please add your 2c. Thanks -- Phil Phil Daintree Logic Works Ltd - +64 (0)275 567890 http://www.logicworks.co.nz |
From: Phil D. <ph...@lo...> - 2015-02-18 05:56:44
|
This sounds a nice contribution - probably we should expand on this. I think Tim's rationale makes good sense. Phil Phil Daintree Logic Works Ltd - +64 (0)275 567890 http://www.logicworks.co.nz On 18/02/15 09:14, Vitaly Shevkunov wrote: > Hi all, > > Here some continuation on the printing adventures. > Tim suggested that some/most reports do not need to be rendered in > PDF, but could be printed off the screen using Print button in the > browser. To do that the layout of the page needs to be adjusted using > a separate CSS file. > I have done a little research and created print.css file with the > rules that apply only when the page is sent to the printer. It is done > by specifying media="print" for the stylesheet. > The print.css hides the menus, header and the footer. In addition, > anything that does not need to be printed, can be marked as > class="noprint". > > I modified the Balance Sheet, Income Statement and the Trial Balance > to show how it is done. > The changes are in the trunk. > > Hope you like it. > > Vitaly > > > Hi, > > Sorry by the delay, I was busy with an urgent invoice problem. > > Tim: Thank you, very much, for the info about print stylesheets. > Vitaly: Thank you, very much, for the link. > > Sounds interesting: write one code (report), generate to multiple > media (outputs). > Also, no character encoding problems (using HTML entities instead) and > can include rich format (HTML formatting tags). > > I am thinking in: > (1) Make the code for all reports so that they are generated by a > "screen" stylesheet to render the page in the browser window; > (2) In all reports include a button to print using a "print" > stylesheet to render the page for a printer; and > (3) Create a print stylesheet "print.css"; > (4) Re-create a Form Designer to modify the the main cascading style > sheet (CSS for screen). > > I agree that quotations and invoices are special cases. I need to > generate PDFs to be sent by email. In this case, if no way, I prefer > to use TCPDF (including generate barcodes). > > Best regards, Rafael. > > 2015-02-16 14:16 GMT-06:00 Vitaly Shevkunov <vsh...@so... > <mailto:vsh...@so...>>: > > There is some guides on Internet on how to set up the print css. > For example this one. > http://www.webcredible.com/blog-reports/css/print-stylesheet.shtml > > I will try it here to see what I will get. > > Vitaly > > On 2/16/2015 3:58 AM, Tim Schofield wrote: >> Hi Vitaly, yes you are correct it was the reports that I had in >> mind, for instance the trial balance where we maintain two >> completely separate pieces of code one for html and another for pdf. >> >> However a simple html template for an invoice, and a css >> stylesheet to customise for each company should be a possibility? >> Putting together a form designer to dynamically change this css >> shouldn't be as big a problem as with a pdf. >> >> Tim >> >> On 15 February 2015 at 19:55, Vitaly Shevkunov >> <vsh...@so... <mailto:vsh...@so...>> wrote: >> >> Tim, >> >> The css printing is fine for general output. I am not sure it >> will work for creating specific forms, like quotations and >> invoices. My biggest challenge is how to allow the end user >> to customize their forms without php programming. If it could >> be done by using css, then I will be happy to start using it. >> Does anybody know a good form designer that would be easy to >> use for an average person? >> >> Vitalt >> >> >> On 2/15/2015 4:20 AM, Tim Schofield wrote: >>> It is debatable whether we need to be generating pdf reports >>> at all these days. You now have the option to use different >>> css stylesheets depending upon the media that is being used >>> to render the page. So you can have a "screen" stylesheet to >>> render the page in the browser window, and a separate >>> "print" stylesheet to render the page for a printer. This >>> printer stylesheet would hide those elements not wanted in >>> the printed output such as the menus and the footer etc, and >>> all the user has to do is to press the print button in their >>> browser to get a printed report. >>> >>> This way we don't have to duplicate code for pdf and html >>> output, and also the browsers rendering engine takes care of >>> line wrapping etc making sure the output always looks good. >>> No messing about with all those pdf fonts either. >>> >>> If pdf output is still required browsers can still print to >>> a pdf file. >>> >>> Tim >>> >>> On 14 February 2015 at 15:09, Rafael Chacón >>> <raf...@gm... >>> <mailto:raf...@gm...>> wrote: >>> >>> Hi Vitaly, >>> >>> I am happy that this code helps you. >>> >>> About putting the $fill parameter back: I think it is >>> possible, but we need help. I explain myself: >>> * In ~/includes/class.pdf.php, in function >>> AddTextWrap(), there are two additional parameters: >>> $border and $fill. $border is "translated" to 'LTRB' and >>> sets two variables: $b and $b2; but $border and $b2 are >>> not used to produce any output. Also $fill do not >>> produce any output (only is mentioned in the argument list). >>> * In R&OS there are two other parameters: $angle and >>> $test. Those parameters have no relation with $border >>> and $fill. We just copy for compatibility. >>> * R&OS deletes addTextWrap() in version 0.12.2 and >>> recommends to "use addText instead". The version we have >>> has a little documentation ($test = "need to store the >>> initial text state, as this will change during the width >>> calculation but will need to be re-set before printing, >>> so that the chars work out right"). >>> >>> We are assuming that $border and $fill were included in >>> ~/includes/class.pdf.php with the same purpose they have >>> in ~/includes/tcpdf/tcpdf.php. For compatibility >>> purposes, We leave $angle and $test as they are in >>> original R&OS's AddTextWrap() function. We add $border >>> and $fill as they are in original Nicola Asuni's TCPDF >>> library. I enclose this update. >>> >>> Here, the direct use of Nicola Asuni's TCPDF library is >>> preferred. I agree with that those functions have more >>> features and the scripts will be faster, but I am not >>> sure about implications of this for users (e.g. fixing >>> the extra blank line bug). >>> >>> Best regards, Rafael. >>> >>> >>> 2015-02-13 21:05 GMT-06:00 Vitaly Shevkunov >>> <vsh...@so... >>> <mailto:vsh...@so...>>: >>> >>> Hi Rafael, >>> >>> I applied your updated function to my code and >>> started testing. So far I like it very much. I does >>> everything that I expected that function to do in >>> the first place. I found some problems in some of my >>> forms, but not too many. All of them due to my >>> hacking, trying to get that function to do what it >>> was not doing before. >>> The only change I would make is to put the $fill >>> parameter back. It is a very useful feature for me. >>> >>> Thank you very much >>> >>> Vitaly >>> >>> On 2/13/2015 2:14 PM, Rafael Chacón wrote: >>>> Hi Andrew, >>>> >>>> Sorry, just I read you messages. >>>> >>>> Yes, as I said in previous messages, this new >>>> AddTextWrap fixes the extra blank line bug. But if >>>> any user like this extra blank line bug, there is >>>> lot of work adding a extra line to reports. >>>> >>>> About the problem with your text: >>>> >>>> I think the text does not wrap because it is using >>>> a non-breaking space character instead of a white >>>> space character. >>>> >>>> A possible fix: >>>> >>>> $nbsp = html_entity_decode(' ', ENT_QUOTES, >>>> 'UTF-8');// Converts non-breaking space HTML entity >>>> to their applicable character. >>>> $text = str_replace($nbsp,' ',$text); >>>> >>>> Best regards, Rafael. >>>> >>>> 2015-02-13 13:53 GMT-06:00 Rafael Chacón >>>> <raf...@gm... >>>> <mailto:raf...@gm...>>: >>>> >>>> Hi, >>>> >>>> I enclose a uptdate to new addTextWrap. >>>> >>>> Changes: >>>> 1. Sets encoding 'UTF-8' in all multi-byte >>>> functions. >>>> 2. Adds the replace of '\n' text with a line >>>> feed character. This is to fix the possible >>>> introduction of a '\n' text instead of a line >>>> feed character. >>>> 3. Adds the delete of '\r' text. This is to fix >>>> the possible introduction of a '\r' text >>>> instead of a carriage return character. >>>> 4. Replaces hard hypen with soft hyphen as >>>> possible break position. >>>> 5. Privileges the use of mb_substr() instead of >>>> $text{$i} (deprecated? not multi-byte safe?) >>>> and $text[$i] (not multi-byte safe?). >>>> 6. Uses "greater than or equal to" comparison >>>> instead of "greater than" to cover the >>>> possibility of exact matches to exit for() loop. >>>> 7. Uses "less than or equal to" comparison >>>> instead of "less than" to cover the possibility >>>> of exact matches to exit for() loop. >>>> 8. Excludes the break character from the >>>> returned string. >>>> 9. Improves documentation and formatting. >>>> >>>> Best regards, Rafael. >>>> >>>> 2015-02-13 9:59 GMT-06:00 Andrew Galuski >>>> <aga...@re... >>>> <mailto:aga...@re...>>: >>>> >>>> Actually. >>>> >>>> My issue seems to be with special >>>> characters. Any help is appreciated. I >>>> can’t seem to figure out why. >>>> >>>> This Doesn’t Wrap on the invoice >>>> >>>> TEST trademark ABC P-1700 CL 2612MPC >>>> >>>> >>>> This does wrap (Much Shorter but Trademark >>>> sign inside of it). I don’t want it to wrap. >>>> >>>> TEST ® ABC P-1700 CL 2612MPC >>>> >>>> I can make 1 modification that fixes it but >>>> I am unsure why it is needed and again not >>>> sure of what else it will affect. >>>> >>>> Original code line 293 ‘while($i<$nb)’ >>>> >>>> This code fixes it ‘while($i<=$nb)’ >>>> >>>> where >>>> >>>> ‘$nb=mb_strlen($s);’ >>>> >>>> Ideas? >>>> >>>> Best Regards, >>>> >>>> Andrew Galuski >>>> >>>> ResMart LLC. >>>> >>>> 817.615.2038 (Office) >>>> >>>> 817.821.0544 (Cell) >>>> >>>> www.resmart.com <http://www.resmart.com> >>>> >>>> resmart_logo >>>> >>>> *From:*Andrew Galuski >>>> [mailto:aga...@re... >>>> <mailto:aga...@re...>] >>>> *Sent:* Friday, February 13, 2015 9:48 AM >>>> >>>> >>>> *To:* webERP Developers >>>> *Subject:* Re: [WebERP-developers] PDF >>>> generator in webERP. >>>> >>>> The missing spaces would make me have to >>>> alter too many forms I believe but it is >>>> nice work. >>>> >>>> I think locally I can fix my issue with >>>> another small change. >>>> >>>> Best Regards, >>>> >>>> Andrew Galuski >>>> >>>> ResMart LLC. >>>> >>>> 817.615.2038 (Office) >>>> >>>> 817.821.0544 (Cell) >>>> >>>> www.resmart.com <http://www.resmart.com> >>>> >>>> resmart_logo >>>> >>>> *From:*Rafael Chacón >>>> [mailto:raf...@gm...] >>>> *Sent:* Wednesday, February 11, 2015 4:45 PM >>>> *To:* webERP Developers >>>> *Subject:* Re: [WebERP-developers] PDF >>>> generator in webERP. >>>> >>>> Hi Andrew, >>>> >>>> I enclose my new AddTextWrap. Inside >>>> ~/includes/class.pdf.php, replace >>>> AddTextWrap lines (80-169) with lines 3-66 >>>> of the included file. >>>> >>>> Comments: >>>> * I'm testing with last version of Nicola >>>> Asuni's TCPDF. >>>> * It is possible to replace line 56 >>>> ("$textwidth += >>>> $this->GetStringWidth($c);") with two >>>> lines. Those two lines makes the function a >>>> little faster in some cases ($text width >>>> near the cell width), but slower in other >>>> cases ($text width far from the cell width). >>>> >>>> Best regards, Rafael. >>>> >>>> 2015-02-11 16:19 GMT-06:00 Andrew Galuski >>>> <aga...@re... >>>> <mailto:aga...@re...>>: >>>> >>>> I am trouble shooting the same problem >>>> today where it wraps text smaller than the >>>> width. The added $s = trim($s).' ';" causes >>>> an issue for me. Or you can change a do >>>> while loop from < to <= $nb and it appears >>>> to fix same issue. My worry was testing all >>>> existing forms. If you can send me your >>>> update I will test it in my environment for >>>> all my forms. >>>> >>>> Sent from my BlackBerry 10 smartphone on >>>> the Verizon Wireless 4G LTE network. >>>> >>>> *From: *Rafael Chacón >>>> >>>> *Sent: *Wednesday, February 11, 2015 3:26 PM >>>> >>>> *To: *webERP Developers >>>> >>>> *Reply To: *webERP Developers >>>> >>>> *Subject: *Re: [WebERP-developers] PDF >>>> generator in webERP. >>>> >>>> Hi Vitaly, >>>> >>>> Thank you for writing. >>>> >>>> About >>>> "$lines=explode("\r\n",htmlspecialchars_decode($myrow2['narrative']));": >>>> This line returns an array of strings, each >>>> of which is a substring of >>>> $myrow2['narrative'] formed by splitting it >>>> on boundaries formed by the characters >>>> Carriage_Return ("\r") and Line_Feed >>>> ("\n"). It only works for msWindows >>>> (Unix-like and Mac OS-10 use Line_Feed; Mac >>>> OS up to version 9 uses Carriage_Return). >>>> >>>> The problem in PrintCustTransPortrait.php >>>> (and other reports) is caused by two bugs >>>> in AddTextWarp(): >>>> >>>> 1. Line 108: "$s = trim($s).' ';" (extra >>>> blank character -> the extra white line). >>>> 2. Lines from 106 to 164: (the logic of the >>>> code -> splitting in the last white_space >>>> of a segment smaller that the cell width). >>>> >>>> My purpose in asking if someone "has >>>> problem with this function (last line >>>> line-feeded before the end) ?" is know who >>>> else experiences that problem. >>>> >>>> I have a new AddTextWrap that fixes both >>>> bugs. It is faster and produces PDF files >>>> with a slightly smaller size, but >>>> --obviously-- it not produce the extra >>>> blank line in segments smaller than cell >>>> width. Many users like this (no extra blank >>>> line) but there are some users who ask me >>>> to re-do this extra blank line. >>>> >>>> I would like other people tests this new >>>> AddTextWrap. Although this extra blank line >>>> is a bug, I am not comfortable with the >>>> idea of a potential change in actual reports. >>>> >>>> Best regards, Rafael. >>>> >>>> 2015-02-11 8:25 GMT-06:00 Vitaly Shevkunov >>>> <vsh...@so... >>>> <mailto:vsh...@so...>>: >>>> >>>> Rafael, >>>> >>>> The addTextWrap() does not split the line >>>> like that. It is done by this function >>>> $lines=explode("\r\n",htmlspecialchars_decode($myrow2['narrative'])); >>>> >>>> in PrintCustTransPortrait.php >>>> >>>> >>>> Vitaly >>>> >>>> >>>> >>>> On 2/10/2015 9:38 PM, Rafael Chacón wrote: >>>> >>>> HI Phil, >>>> >>>> Thank you for your answer. >>>> >>>> Topic 1: From R&OS -> FPDF -> TCPDF. >>>> For future pdf development, I think it >>>> will be better to directly use TCPDF: >>>> (a) Y-coordinate= instead of >>>> calculating as from page-bottom to >>>> cell-bottom and the script >>>> class.pdf.php translates to page-top to >>>> cell-top to use tcpdf.php, we can >>>> directly use page-top to cell-top and >>>> TCPDF; (b) TCPDF has interesting >>>> functions (writeHTML, writeHTMLCell, >>>> etc.) to write code html (a screen >>>> report) into a pdf. >>>> >>>> Topic 2: tcpdf 6.2.6 has new fonts and >>>> others.They may be helpful to give more >>>> options to reports. >>>> >>>> Topic 3: With >>>> PrintCustTransPortrait.php (and other >>>> reports) I have unexpected breaks (see >>>> enclose) and prints lines with >>>> whitespace. The problems are inside >>>> AddTextWarp(). >>>> >>>> Regards, Rafael. >>>> >>>> 2015-02-09 22:34 GMT-06:00 Phil >>>> Daintree <ph...@lo... >>>> <mailto:ph...@lo...>>: >>>> >>>> Yes originally used R & OS pdf library. >>>> Moved to Oliver Plathey FPDF >>>> http://www.fpdf.org/ >>>> The class.pdf.php was created to allow >>>> the transition to FPDF >>>> ... then to TCPDF which was a >>>> development of FPDF which allowed utf-8 >>>> pdfs - using CID fonts rather than >>>> embedding a large monster font file >>>> into each pdf - so a small 10k report >>>> becomes 2 Meg. This was not considered >>>> acceptable. >>>> I update tcpdf from time to time. >>>> >>>> Not sure about 3. >>>> >>>> Phil >>>> >>>> >>>> >>>> Phil Daintree >>>> >>>> Logic Works Ltd - +64 (0)275 567890 >>>> >>>> http://www.logicworks.co.nz >>>> >>>> On 10/02/15 13:37, Rafael Chacón wrote: >>>> >>>> Hi, >>>> >>>> Some questions: >>>> >>>> 1. webERP begun using PHP Pdf >>>> creation - R&OS >>>> (http://sourceforge.net/projects/pdf-php/). >>>> Then, webERP moved to TCPDF >>>> (http://www.tcpdf.org/). Javier de >>>> Lorenzo-Cáceres wrote >>>> ~/includes/class.pdf.php to use >>>> TCPDF with "PHP_Pdf_creation_-_R&OS >>>> syntax" (old code). Is it right? >>>> >>>> 2. Someone has updated the >>>> ~/includes/tcpdf folder with TCPDF >>>> version 6.2.6 ? >>>> >>>> 3. Someone has replaced the >>>> function AddTextWarp() or has >>>> problem with this function (last >>>> line line-feeded before the end) ? >>>> >>>> Best regards, Rafael. >>>> >>>> ------------------------------------------------------------------------------ >>>> >>>> Dive into the World of Parallel Programming. The Go Parallel Website, >>>> >>>> sponsored by Intel and developed in partnership with Slashdot Media, is your >>>> >>>> hub for all things parallel software development, from weekly thought >>>> >>>> leadership blogs to news, videos, case studies, tutorials and more. Take a >>>> >>>> look and join the conversation now.http://goparallel.sourceforge.net/ >>>> >>>> _______________________________________________ >>>> >>>> Web-erp-developers mailing list >>>> >>>> Web...@li... <mailto:Web...@li...> >>>> >>>> https://lists.sourceforge.net/lists/listinfo/web-erp-developers >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Dive into the World of Parallel >>>> Programming. The Go Parallel Website, >>>> sponsored by Intel and developed in >>>> partnership with Slashdot Media, is your >>>> hub for all things parallel software >>>> development, from weekly thought >>>> leadership blogs to news, videos, case >>>> studies, tutorials and more. Take a >>>> look and join the conversation now. >>>> http://goparallel.sourceforge.net/ >>>> _______________________________________________ >>>> Web-erp-developers mailing list >>>> Web...@li... <mailto:Web...@li...> >>>> https://lists.sourceforge.net/lists/listinfo/web-erp-developers >>>> >>>> ------------------------------------------------------------------------------ >>>> >>>> Dive into the World of Parallel Programming. The Go Parallel Website, >>>> >>>> sponsored by Intel and developed in partnership with Slashdot Media, is your >>>> >>>> hub for all things parallel software development, from weekly thought >>>> >>>> leadership blogs to news, videos, case studies, tutorials and more. Take a >>>> >>>> look and join the conversation now.http://goparallel.sourceforge.net/ >>>> >>>> _______________________________________________ >>>> >>>> Web-erp-developers mailing list >>>> >>>> Web...@li... <mailto:Web...@li...> >>>> >>>> https://lists.sourceforge.net/lists/listinfo/web-erp-developers >>>> >>>> No virus found in this message. >>>> Checked by AVG - www.avg.com >>>> <http://www.avg.com> >>>> Version: 2015.0.5646 / Virus Database: >>>> 4284/9096 - Release Date: 02/11/15 >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Dive into the World of Parallel >>>> Programming. The Go Parallel Website, >>>> sponsored by Intel and developed in >>>> partnership with Slashdot Media, is your >>>> hub for all things parallel software >>>> development, from weekly thought >>>> leadership blogs to news, videos, case >>>> studies, tutorials and more. Take a >>>> look and join the conversation now. >>>> http://goparallel.sourceforge.net/ >>>> _______________________________________________ >>>> Web-erp-developers mailing list >>>> Web...@li... >>>> <mailto:Web...@li...> >>>> https://lists.sourceforge.net/lists/listinfo/web-erp-developers >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Dive into the World of Parallel >>>> Programming. The Go Parallel Website, >>>> sponsored by Intel and developed in >>>> partnership with Slashdot Media, is your >>>> hub for all things parallel software >>>> development, from weekly thought >>>> leadership blogs to news, videos, case >>>> studies, tutorials and more. Take a >>>> look and join the conversation now. >>>> http://goparallel.sourceforge.net/ >>>> <http://goparallel.sourceforge.net/> >>>> _______________________________________________ >>>> Web-erp-developers mailing list >>>> Web...@li... >>>> <mailto:Web...@li...> >>>> https://lists.sourceforge.net/lists/listinfo/web-erp-developers >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Dive into the World of Parallel >>>> Programming. The Go Parallel Website, >>>> sponsored by Intel and developed in >>>> partnership with Slashdot Media, is your >>>> hub for all things parallel software >>>> development, from weekly thought >>>> leadership blogs to news, videos, case >>>> studies, tutorials and more. Take a >>>> look and join the conversation now. >>>> http://goparallel.sourceforge.net/ >>>> _______________________________________________ >>>> Web-erp-developers mailing list >>>> Web...@li... >>>> <mailto:Web...@li...> >>>> https://lists.sourceforge.net/lists/listinfo/web-erp-developers >>>> >>>> >>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Dive into the World of Parallel Programming. The Go Parallel Website, >>>> sponsored by Intel and developed in partnership with Slashdot Media, is your >>>> hub for all things parallel software development, from weekly thought >>>> leadership blogs to news, videos, case studies, tutorials and more. Take a >>>> >>>> >>>> >>>> look and join the conversation now.http://goparallel.sourceforge.net/ >>>> >>>> >>>> _______________________________________________ >>>> Web-erp-developers mailing list >>>> Web...@li... <mailto:Web...@li...> >>>> https://lists.sourceforge.net/lists/listinfo/web-erp-developers >>>> >>>> >>>> No virus found in this message. >>>> Checked by AVG - www.avg.com <http://www.avg.com> >>>> Version: 2015.0.5646 / Virus Database: 4284/9102 - >>>> Release Date: 02/12/15 >>> >>> >>> ------------------------------------------------------------------------------ >>> Dive into the World of Parallel Programming. The Go >>> Parallel Website, >>> sponsored by Intel and developed in partnership with >>> Slashdot Media, is your >>> hub for all things parallel software development, >>> from weekly thought >>> leadership blogs to news, videos, case studies, >>> tutorials and more. Take a >>> look and join the conversation now. >>> http://goparallel.sourceforge.net/ >>> _______________________________________________ >>> Web-erp-developers mailing list >>> Web...@li... >>> <mailto:Web...@li...> >>> https://lists.sourceforge.net/lists/listinfo/web-erp-developers >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Dive into the World of Parallel Programming. The Go >>> Parallel Website, >>> sponsored by Intel and developed in partnership with >>> Slashdot Media, is your >>> hub for all things parallel software development, from >>> weekly thought >>> leadership blogs to news, videos, case studies, >>> tutorials and more. Take a >>> look and join the conversation now. >>> http://goparallel.sourceforge.net/ >>> _______________________________________________ >>> Web-erp-developers mailing list >>> Web...@li... >>> <mailto:Web...@li...> >>> https://lists.sourceforge.net/lists/listinfo/web-erp-developers >>> >>> >>> >>> >>> -- >>> Course View Towers, >>> Plot 21 Yusuf Lule Road, >>> Kampala >>> T +256 (0) 312 314 418 >>> M +256 (0) 752 963 325 >>> www.weberpafrica.com <http://www.weberpafrica.com> >>> Twitter: @TimSchofield2 >>> Blog: http://weberpafrica.blogspot.co.uk/ >>> No virus found in this message. >>> Checked by AVG - www.avg.com <http://www.avg.com> >>> Version: 2015.0.5646 / Virus Database: 4284/9112 - Release >>> Date: 02/14/15 >> >> >> >> >> -- >> Course View Towers, >> Plot 21 Yusuf Lule Road, >> Kampala >> T +256 (0) 312 314 418 >> M +256 (0) 752 963 325 >> www.weberpafrica.com <http://www.weberpafrica.com> >> Twitter: @TimSchofield2 >> Blog: http://weberpafrica.blogspot.co.uk/ >> >> No virus found in this message. >> Checked by AVG - www.avg.com <http://www.avg.com> >> Version: 2015.0.5646 / Virus Database: 4284/9120 - Release Date: >> 02/15/15 >> > > > No virus found in this message. > Checked by AVG - www.avg.com <http://www.avg.com> > Version: 2015.0.5646 / Virus Database: 4284/9126 - Release Date: 02/16/15 > > > > ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & more > Get technology previously reserved for billion-dollar corporations, FREE > http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk > > > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers |
From: Vitaly S. <vsh...@so...> - 2015-02-17 20:15:26
|
Hi all, Here some continuation on the printing adventures. Tim suggested that some/most reports do not need to be rendered in PDF, but could be printed off the screen using Print button in the browser. To do that the layout of the page needs to be adjusted using a separate CSS file. I have done a little research and created print.css file with the rules that apply only when the page is sent to the printer. It is done by specifying media="print" for the stylesheet. The print.css hides the menus, header and the footer. In addition, anything that does not need to be printed, can be marked as class="noprint". I modified the Balance Sheet, Income Statement and the Trial Balance to show how it is done. The changes are in the trunk. Hope you like it. Vitaly Hi, Sorry by the delay, I was busy with an urgent invoice problem. Tim: Thank you, very much, for the info about print stylesheets. Vitaly: Thank you, very much, for the link. Sounds interesting: write one code (report), generate to multiple media (outputs). Also, no character encoding problems (using HTML entities instead) and can include rich format (HTML formatting tags). I am thinking in: (1) Make the code for all reports so that they are generated by a "screen" stylesheet to render the page in the browser window; (2) In all reports include a button to print using a "print" stylesheet to render the page for a printer; and (3) Create a print stylesheet "print.css"; (4) Re-create a Form Designer to modify the the main cascading style sheet (CSS for screen). I agree that quotations and invoices are special cases. I need to generate PDFs to be sent by email. In this case, if no way, I prefer to use TCPDF (including generate barcodes). Best regards, Rafael. 2015-02-16 14:16 GMT-06:00 Vitaly Shevkunov <vsh...@so... <mailto:vsh...@so...>>: There is some guides on Internet on how to set up the print css. For example this one. http://www.webcredible.com/blog-reports/css/print-stylesheet.shtml I will try it here to see what I will get. Vitaly On 2/16/2015 3:58 AM, Tim Schofield wrote: > Hi Vitaly, yes you are correct it was the reports that I had in > mind, for instance the trial balance where we maintain two > completely separate pieces of code one for html and another for pdf. > > However a simple html template for an invoice, and a css > stylesheet to customise for each company should be a possibility? > Putting together a form designer to dynamically change this css > shouldn't be as big a problem as with a pdf. > > Tim > > On 15 February 2015 at 19:55, Vitaly Shevkunov > <vsh...@so... <mailto:vsh...@so...>> wrote: > > Tim, > > The css printing is fine for general output. I am not sure it > will work for creating specific forms, like quotations and > invoices. My biggest challenge is how to allow the end user to > customize their forms without php programming. If it could be > done by using css, then I will be happy to start using it. > Does anybody know a good form designer that would be easy to > use for an average person? > > Vitalt > > > On 2/15/2015 4:20 AM, Tim Schofield wrote: >> It is debatable whether we need to be generating pdf reports >> at all these days. You now have the option to use different >> css stylesheets depending upon the media that is being used >> to render the page. So you can have a "screen" stylesheet to >> render the page in the browser window, and a separate "print" >> stylesheet to render the page for a printer. This printer >> stylesheet would hide those elements not wanted in the >> printed output such as the menus and the footer etc, and all >> the user has to do is to press the print button in their >> browser to get a printed report. >> >> This way we don't have to duplicate code for pdf and html >> output, and also the browsers rendering engine takes care of >> line wrapping etc making sure the output always looks good. >> No messing about with all those pdf fonts either. >> >> If pdf output is still required browsers can still print to a >> pdf file. >> >> Tim >> >> On 14 February 2015 at 15:09, Rafael Chacón >> <raf...@gm... >> <mailto:raf...@gm...>> wrote: >> >> Hi Vitaly, >> >> I am happy that this code helps you. >> >> About putting the $fill parameter back: I think it is >> possible, but we need help. I explain myself: >> * In ~/includes/class.pdf.php, in function AddTextWrap(), >> there are two additional parameters: $border and $fill. >> $border is "translated" to 'LTRB' and sets two variables: >> $b and $b2; but $border and $b2 are not used to produce >> any output. Also $fill do not produce any output (only is >> mentioned in the argument list). >> * In R&OS there are two other parameters: $angle and >> $test. Those parameters have no relation with $border and >> $fill. We just copy for compatibility. >> * R&OS deletes addTextWrap() in version 0.12.2 and >> recommends to "use addText instead". The version we have >> has a little documentation ($test = "need to store the >> initial text state, as this will change during the width >> calculation but will need to be re-set before printing, >> so that the chars work out right"). >> >> We are assuming that $border and $fill were included in >> ~/includes/class.pdf.php with the same purpose they have >> in ~/includes/tcpdf/tcpdf.php. For compatibility >> purposes, We leave $angle and $test as they are in >> original R&OS's AddTextWrap() function. We add $border >> and $fill as they are in original Nicola Asuni's TCPDF >> library. I enclose this update. >> >> Here, the direct use of Nicola Asuni's TCPDF library is >> preferred. I agree with that those functions have more >> features and the scripts will be faster, but I am not >> sure about implications of this for users (e.g. fixing >> the extra blank line bug). >> >> Best regards, Rafael. >> >> >> 2015-02-13 21:05 GMT-06:00 Vitaly Shevkunov >> <vsh...@so... >> <mailto:vsh...@so...>>: >> >> Hi Rafael, >> >> I applied your updated function to my code and >> started testing. So far I like it very much. I does >> everything that I expected that function to do in the >> first place. I found some problems in some of my >> forms, but not too many. All of them due to my >> hacking, trying to get that function to do what it >> was not doing before. >> The only change I would make is to put the $fill >> parameter back. It is a very useful feature for me. >> >> Thank you very much >> >> Vitaly >> >> On 2/13/2015 2:14 PM, Rafael Chacón wrote: >>> Hi Andrew, >>> >>> Sorry, just I read you messages. >>> >>> Yes, as I said in previous messages, this new >>> AddTextWrap fixes the extra blank line bug. But if >>> any user like this extra blank line bug, there is >>> lot of work adding a extra line to reports. >>> >>> About the problem with your text: >>> >>> I think the text does not wrap because it is using a >>> non-breaking space character instead of a white >>> space character. >>> >>> A possible fix: >>> >>> $nbsp = html_entity_decode(' ', ENT_QUOTES, >>> 'UTF-8');// Converts non-breaking space HTML entity >>> to their applicable character. >>> $text = str_replace($nbsp,' ',$text); >>> >>> Best regards, Rafael. >>> >>> 2015-02-13 13:53 GMT-06:00 Rafael Chacón >>> <raf...@gm... >>> <mailto:raf...@gm...>>: >>> >>> Hi, >>> >>> I enclose a uptdate to new addTextWrap. >>> >>> Changes: >>> 1. Sets encoding 'UTF-8' in all multi-byte >>> functions. >>> 2. Adds the replace of '\n' text with a line >>> feed character. This is to fix the possible >>> introduction of a '\n' text instead of a line >>> feed character. >>> 3. Adds the delete of '\r' text. This is to fix >>> the possible introduction of a '\r' text instead >>> of a carriage return character. >>> 4. Replaces hard hypen with soft hyphen as >>> possible break position. >>> 5. Privileges the use of mb_substr() instead of >>> $text{$i} (deprecated? not multi-byte safe?) and >>> $text[$i] (not multi-byte safe?). >>> 6. Uses "greater than or equal to" comparison >>> instead of "greater than" to cover the >>> possibility of exact matches to exit for() loop. >>> 7. Uses "less than or equal to" comparison >>> instead of "less than" to cover the possibility >>> of exact matches to exit for() loop. >>> 8. Excludes the break character from the >>> returned string. >>> 9. Improves documentation and formatting. >>> >>> Best regards, Rafael. >>> >>> 2015-02-13 9:59 GMT-06:00 Andrew Galuski >>> <aga...@re... >>> <mailto:aga...@re...>>: >>> >>> Actually. >>> >>> My issue seems to be with special >>> characters. Any help is appreciated. I can’t >>> seem to figure out why. >>> >>> This Doesn’t Wrap on the invoice >>> >>> TEST trademark ABC P-1700 CL 2612MPC >>> >>> >>> This does wrap (Much Shorter but Trademark >>> sign inside of it). I don’t want it to wrap. >>> >>> TEST ® ABC P-1700 CL 2612MPC >>> >>> I can make 1 modification that fixes it but >>> I am unsure why it is needed and again not >>> sure of what else it will affect. >>> >>> Original code line 293 ‘while($i<$nb)’ >>> >>> This code fixes it ‘while($i<=$nb)’ >>> >>> where >>> >>> ‘$nb=mb_strlen($s);’ >>> >>> Ideas? >>> >>> Best Regards, >>> >>> Andrew Galuski >>> >>> ResMart LLC. >>> >>> 817.615.2038 (Office) >>> >>> 817.821.0544 (Cell) >>> >>> www.resmart.com <http://www.resmart.com> >>> >>> resmart_logo >>> >>> *From:*Andrew Galuski >>> [mailto:aga...@re... >>> <mailto:aga...@re...>] >>> *Sent:* Friday, February 13, 2015 9:48 AM >>> >>> >>> *To:* webERP Developers >>> *Subject:* Re: [WebERP-developers] PDF >>> generator in webERP. >>> >>> The missing spaces would make me have to >>> alter too many forms I believe but it is >>> nice work. >>> >>> I think locally I can fix my issue with >>> another small change. >>> >>> Best Regards, >>> >>> Andrew Galuski >>> >>> ResMart LLC. >>> >>> 817.615.2038 (Office) >>> >>> 817.821.0544 (Cell) >>> >>> www.resmart.com <http://www.resmart.com> >>> >>> resmart_logo >>> >>> *From:*Rafael Chacón >>> [mailto:raf...@gm...] >>> *Sent:* Wednesday, February 11, 2015 4:45 PM >>> *To:* webERP Developers >>> *Subject:* Re: [WebERP-developers] PDF >>> generator in webERP. >>> >>> Hi Andrew, >>> >>> I enclose my new AddTextWrap. Inside >>> ~/includes/class.pdf.php, replace >>> AddTextWrap lines (80-169) with lines 3-66 >>> of the included file. >>> >>> Comments: >>> * I'm testing with last version of Nicola >>> Asuni's TCPDF. >>> * It is possible to replace line 56 >>> ("$textwidth += $this->GetStringWidth($c);") >>> with two lines. Those two lines makes the >>> function a little faster in some cases >>> ($text width near the cell width), but >>> slower in other cases ($text width far from >>> the cell width). >>> >>> Best regards, Rafael. >>> >>> 2015-02-11 16:19 GMT-06:00 Andrew Galuski >>> <aga...@re... >>> <mailto:aga...@re...>>: >>> >>> I am trouble shooting the same problem today >>> where it wraps text smaller than the width. >>> The added $s = trim($s).' ';" causes an >>> issue for me. Or you can change a do while >>> loop from < to <= $nb and it appears to fix >>> same issue. My worry was testing all >>> existing forms. If you can send me your >>> update I will test it in my environment for >>> all my forms. >>> >>> Sent from my BlackBerry 10 smartphone on the >>> Verizon Wireless 4G LTE network. >>> >>> *From: *Rafael Chacón >>> >>> *Sent: *Wednesday, February 11, 2015 3:26 PM >>> >>> *To: *webERP Developers >>> >>> *Reply To: *webERP Developers >>> >>> *Subject: *Re: [WebERP-developers] PDF >>> generator in webERP. >>> >>> Hi Vitaly, >>> >>> Thank you for writing. >>> >>> About >>> "$lines=explode("\r\n",htmlspecialchars_decode($myrow2['narrative']));": >>> This line returns an array of strings, each >>> of which is a substring of >>> $myrow2['narrative'] formed by splitting it >>> on boundaries formed by the characters >>> Carriage_Return ("\r") and Line_Feed ("\n"). >>> It only works for msWindows (Unix-like and >>> Mac OS-10 use Line_Feed; Mac OS up to >>> version 9 uses Carriage_Return). >>> >>> The problem in PrintCustTransPortrait.php >>> (and other reports) is caused by two bugs in >>> AddTextWarp(): >>> >>> 1. Line 108: "$s = trim($s).' ';" (extra >>> blank character -> the extra white line). >>> 2. Lines from 106 to 164: (the logic of the >>> code -> splitting in the last white_space of >>> a segment smaller that the cell width). >>> >>> My purpose in asking if someone "has problem >>> with this function (last line line-feeded >>> before the end) ?" is know who else >>> experiences that problem. >>> >>> I have a new AddTextWrap that fixes both >>> bugs. It is faster and produces PDF files >>> with a slightly smaller size, but >>> --obviously-- it not produce the extra blank >>> line in segments smaller than cell width. >>> Many users like this (no extra blank line) >>> but there are some users who ask me to re-do >>> this extra blank line. >>> >>> I would like other people tests this new >>> AddTextWrap. Although this extra blank line >>> is a bug, I am not comfortable with the idea >>> of a potential change in actual reports. >>> >>> Best regards, Rafael. >>> >>> 2015-02-11 8:25 GMT-06:00 Vitaly Shevkunov >>> <vsh...@so... >>> <mailto:vsh...@so...>>: >>> >>> Rafael, >>> >>> The addTextWrap() does not split the line >>> like that. It is done by this function >>> $lines=explode("\r\n",htmlspecialchars_decode($myrow2['narrative'])); >>> >>> in PrintCustTransPortrait.php >>> >>> >>> Vitaly >>> >>> >>> >>> On 2/10/2015 9:38 PM, Rafael Chacón wrote: >>> >>> HI Phil, >>> >>> Thank you for your answer. >>> >>> Topic 1: From R&OS -> FPDF -> TCPDF. For >>> future pdf development, I think it will >>> be better to directly use TCPDF: (a) >>> Y-coordinate= instead of calculating as >>> from page-bottom to cell-bottom and the >>> script class.pdf.php translates to >>> page-top to cell-top to use tcpdf.php, >>> we can directly use page-top to cell-top >>> and TCPDF; (b) TCPDF has interesting >>> functions (writeHTML, writeHTMLCell, >>> etc.) to write code html (a screen >>> report) into a pdf. >>> >>> Topic 2: tcpdf 6.2.6 has new fonts and >>> others.They may be helpful to give more >>> options to reports. >>> >>> Topic 3: With PrintCustTransPortrait.php >>> (and other reports) I have unexpected >>> breaks (see enclose) and prints lines >>> with whitespace. The problems are inside >>> AddTextWarp(). >>> >>> Regards, Rafael. >>> >>> 2015-02-09 22:34 GMT-06:00 Phil Daintree >>> <ph...@lo... >>> <mailto:ph...@lo...>>: >>> >>> Yes originally used R & OS pdf library. >>> Moved to Oliver Plathey FPDF >>> http://www.fpdf.org/ >>> The class.pdf.php was created to allow >>> the transition to FPDF >>> ... then to TCPDF which was a >>> development of FPDF which allowed utf-8 >>> pdfs - using CID fonts rather than >>> embedding a large monster font file into >>> each pdf - so a small 10k report becomes >>> 2 Meg. This was not considered acceptable. >>> I update tcpdf from time to time. >>> >>> Not sure about 3. >>> >>> Phil >>> >>> >>> >>> Phil Daintree >>> >>> Logic Works Ltd - +64 (0)275 567890 >>> >>> http://www.logicworks.co.nz >>> >>> On 10/02/15 13:37, Rafael Chacón wrote: >>> >>> Hi, >>> >>> Some questions: >>> >>> 1. webERP begun using PHP Pdf >>> creation - R&OS >>> (http://sourceforge.net/projects/pdf-php/). >>> Then, webERP moved to TCPDF >>> (http://www.tcpdf.org/). Javier de >>> Lorenzo-Cáceres wrote >>> ~/includes/class.pdf.php to use >>> TCPDF with "PHP_Pdf_creation_-_R&OS >>> syntax" (old code). Is it right? >>> >>> 2. Someone has updated the >>> ~/includes/tcpdf folder with TCPDF >>> version 6.2.6 ? >>> >>> 3. Someone has replaced the function >>> AddTextWarp() or has problem with >>> this function (last line line-feeded >>> before the end) ? >>> >>> Best regards, Rafael. >>> >>> ------------------------------------------------------------------------------ >>> >>> Dive into the World of Parallel Programming. The Go Parallel Website, >>> >>> sponsored by Intel and developed in partnership with Slashdot Media, is your >>> >>> hub for all things parallel software development, from weekly thought >>> >>> leadership blogs to news, videos, case studies, tutorials and more. Take a >>> >>> look and join the conversation now.http://goparallel.sourceforge.net/ >>> >>> _______________________________________________ >>> >>> Web-erp-developers mailing list >>> >>> Web...@li... <mailto:Web...@li...> >>> >>> https://lists.sourceforge.net/lists/listinfo/web-erp-developers >>> >>> >>> ------------------------------------------------------------------------------ >>> Dive into the World of Parallel >>> Programming. The Go Parallel Website, >>> sponsored by Intel and developed in >>> partnership with Slashdot Media, is your >>> hub for all things parallel software >>> development, from weekly thought >>> leadership blogs to news, videos, case >>> studies, tutorials and more. Take a >>> look and join the conversation now. >>> http://goparallel.sourceforge.net/ >>> _______________________________________________ >>> Web-erp-developers mailing list >>> Web...@li... >>> <mailto:Web...@li...> >>> https://lists.sourceforge.net/lists/listinfo/web-erp-developers >>> >>> ------------------------------------------------------------------------------ >>> >>> Dive into the World of Parallel Programming. The Go Parallel Website, >>> >>> sponsored by Intel and developed in partnership with Slashdot Media, is your >>> >>> hub for all things parallel software development, from weekly thought >>> >>> leadership blogs to news, videos, case studies, tutorials and more. Take a >>> >>> look and join the conversation now.http://goparallel.sourceforge.net/ >>> >>> _______________________________________________ >>> >>> Web-erp-developers mailing list >>> >>> Web...@li... <mailto:Web...@li...> >>> >>> https://lists.sourceforge.net/lists/listinfo/web-erp-developers >>> >>> No virus found in this message. >>> Checked by AVG - www.avg.com >>> <http://www.avg.com> >>> Version: 2015.0.5646 / Virus Database: >>> 4284/9096 - Release Date: 02/11/15 >>> >>> >>> ------------------------------------------------------------------------------ >>> Dive into the World of Parallel Programming. >>> The Go Parallel Website, >>> sponsored by Intel and developed in >>> partnership with Slashdot Media, is your >>> hub for all things parallel software >>> development, from weekly thought >>> leadership blogs to news, videos, case >>> studies, tutorials and more. Take a >>> look and join the conversation now. >>> http://goparallel.sourceforge.net/ >>> _______________________________________________ >>> Web-erp-developers mailing list >>> Web...@li... >>> <mailto:Web...@li...> >>> https://lists.sourceforge.net/lists/listinfo/web-erp-developers >>> >>> >>> ------------------------------------------------------------------------------ >>> Dive into the World of Parallel Programming. >>> The Go Parallel Website, >>> sponsored by Intel and developed in >>> partnership with Slashdot Media, is your >>> hub for all things parallel software >>> development, from weekly thought >>> leadership blogs to news, videos, case >>> studies, tutorials and more. Take a >>> look and join the conversation now. >>> http://goparallel.sourceforge.net/ >>> <http://goparallel.sourceforge.net/> >>> _______________________________________________ >>> Web-erp-developers mailing list >>> Web...@li... >>> <mailto:Web...@li...> >>> https://lists.sourceforge.net/lists/listinfo/web-erp-developers >>> >>> >>> ------------------------------------------------------------------------------ >>> Dive into the World of Parallel Programming. >>> The Go Parallel Website, >>> sponsored by Intel and developed in >>> partnership with Slashdot Media, is your >>> hub for all things parallel software >>> development, from weekly thought >>> leadership blogs to news, videos, case >>> studies, tutorials and more. Take a >>> look and join the conversation now. >>> http://goparallel.sourceforge.net/ >>> _______________________________________________ >>> Web-erp-developers mailing list >>> Web...@li... >>> <mailto:Web...@li...> >>> https://lists.sourceforge.net/lists/listinfo/web-erp-developers >>> >>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Dive into the World of Parallel Programming. The Go Parallel Website, >>> sponsored by Intel and developed in partnership with Slashdot Media, is your >>> hub for all things parallel software development, from weekly thought >>> leadership blogs to news, videos, case studies, tutorials and more. Take a >>> >>> >>> >>> look and join the conversation now.http://goparallel.sourceforge.net/ >>> >>> >>> _______________________________________________ >>> Web-erp-developers mailing list >>> Web...@li... <mailto:Web...@li...> >>> https://lists.sourceforge.net/lists/listinfo/web-erp-developers >>> >>> >>> No virus found in this message. >>> Checked by AVG - www.avg.com <http://www.avg.com> >>> Version: 2015.0.5646 / Virus Database: 4284/9102 - >>> Release Date: 02/12/15 >> >> >> ------------------------------------------------------------------------------ >> Dive into the World of Parallel Programming. The Go >> Parallel Website, >> sponsored by Intel and developed in partnership with >> Slashdot Media, is your >> hub for all things parallel software development, >> from weekly thought >> leadership blogs to news, videos, case studies, >> tutorials and more. Take a >> look and join the conversation now. >> http://goparallel.sourceforge.net/ >> _______________________________________________ >> Web-erp-developers mailing list >> Web...@li... >> <mailto:Web...@li...> >> https://lists.sourceforge.net/lists/listinfo/web-erp-developers >> >> >> >> ------------------------------------------------------------------------------ >> Dive into the World of Parallel Programming. The Go >> Parallel Website, >> sponsored by Intel and developed in partnership with >> Slashdot Media, is your >> hub for all things parallel software development, from >> weekly thought >> leadership blogs to news, videos, case studies, tutorials >> and more. Take a >> look and join the conversation now. >> http://goparallel.sourceforge.net/ >> _______________________________________________ >> Web-erp-developers mailing list >> Web...@li... >> <mailto:Web...@li...> >> https://lists.sourceforge.net/lists/listinfo/web-erp-developers >> >> >> >> >> -- >> Course View Towers, >> Plot 21 Yusuf Lule Road, >> Kampala >> T +256 (0) 312 314 418 >> M +256 (0) 752 963 325 >> www.weberpafrica.com <http://www.weberpafrica.com> >> Twitter: @TimSchofield2 >> Blog: http://weberpafrica.blogspot.co.uk/ >> No virus found in this message. >> Checked by AVG - www.avg.com <http://www.avg.com> >> Version: 2015.0.5646 / Virus Database: 4284/9112 - Release >> Date: 02/14/15 > > > > > -- > Course View Towers, > Plot 21 Yusuf Lule Road, > Kampala > T +256 (0) 312 314 418 > M +256 (0) 752 963 325 > www.weberpafrica.com <http://www.weberpafrica.com> > Twitter: @TimSchofield2 > Blog: http://weberpafrica.blogspot.co.uk/ > > No virus found in this message. > Checked by AVG - www.avg.com <http://www.avg.com> > Version: 2015.0.5646 / Virus Database: 4284/9120 - Release Date: > 02/15/15 > No virus found in this message. Checked by AVG - www.avg.com <http://www.avg.com> Version: 2015.0.5646 / Virus Database: 4284/9126 - Release Date: 02/16/15 |
From: Rafael C. <raf...@gm...> - 2015-02-17 20:08:48
|
Hi Andrew: Yes, AddTextWrap() is a nightmare. Besides the bugs I mentioned, there are other things that can create problems: - $s{$i} and $s[$i] are not multi-byte safe. It is better to use: mb_substr($s, $i, 1, 'UTF-8'), with encoding included. - Instead of $nb=mb_strlen($s), it is better to use $nb=mb_strlen($s, 'UTF-8'), with encoding included. - Depending on PHP version, mb_internal_encoding('UTF-8') does not work as expected. Also other multi-byte functions (mb_substr, mb_strlen) do not work properly. See (as example): http://php.net/ChangeLog-5.php version 5.4.8 release notes. I suggest you --if you want to keep this AddTextWrap()-- to replace all functions with multi-byte safe functions and to update php version (get late fixes to mb functions). Best regards, Rafael. 2015-02-17 12:54 GMT-06:00 Andrew Galuski <aga...@re...>: > My problem is actually that the variable $nb is set to mb_strlen($s);. > Since the ® character is counted as 1 by mb_strlen nb ends up being 1 > less than the actual string length. So when I iterate while $i<$nb I always > end up with a break if I have a multibyte character in the string (even > though it is short enough to fit). > > > > If I change to $nb=iconv_strlen($s); then $nb is equal to the actual > string length and I fit on 1 line (but I no longer get the extra line > after. I do get the extra line after if no multi-byte characters are in > the string. > > > > I think I have been on this too long. > > > > > > Best Regards, > > Andrew Galuski > > ResMart LLC. > > 817.615.2038 (Office) > > 817.821.0544 (Cell) > > www.resmart.com > > [image: resmart_logo] > > > > *From:* Rafael Chacón [mailto:raf...@gm...] > *Sent:* Friday, February 13, 2015 2:14 PM > > *To:* webERP Developers > *Subject:* Re: [WebERP-developers] PDF generator in webERP. > > > > Hi Andrew, > > Sorry, just I read you messages. > > Yes, as I said in previous messages, this new AddTextWrap fixes the extra > blank line bug. But if any user like this extra blank line bug, there is > lot of work adding a extra line to reports. > > About the problem with your text: > > I think the text does not wrap because it is using a non-breaking space > character instead of a white space character. > > A possible fix: > > $nbsp = html_entity_decode(' ', ENT_QUOTES, 'UTF-8');// Converts > non-breaking space HTML entity to their applicable character. > $text = str_replace($nbsp,' ',$text); > > Best regards, Rafael. > > > > 2015-02-13 13:53 GMT-06:00 Rafael Chacón <raf...@gm...>: > > Hi, > > I enclose a uptdate to new addTextWrap. > > Changes: > 1. Sets encoding 'UTF-8' in all multi-byte functions. > 2. Adds the replace of '\n' text with a line feed character. This is to > fix the possible introduction of a '\n' text instead of a line feed > character. > 3. Adds the delete of '\r' text. This is to fix the possible introduction > of a '\r' text instead of a carriage return character. > 4. Replaces hard hypen with soft hyphen as possible break position. > 5. Privileges the use of mb_substr() instead of $text{$i} (deprecated? not > multi-byte safe?) and $text[$i] (not multi-byte safe?). > 6. Uses "greater than or equal to" comparison instead of "greater than" to > cover the possibility of exact matches to exit for() loop. > 7. Uses "less than or equal to" comparison instead of "less than" to cover > the possibility of exact matches to exit for() loop. > 8. Excludes the break character from the returned string. > 9. Improves documentation and formatting. > > Best regards, Rafael. > > > > 2015-02-13 9:59 GMT-06:00 Andrew Galuski <aga...@re...>: > > > > Actually. > > My issue seems to be with special characters. Any help is appreciated. I > can’t seem to figure out why. > > This Doesn’t Wrap on the invoice > > TEST trademark ABC P-1700 CL 2612MPC > > > This does wrap (Much Shorter but Trademark sign inside of it). I don’t > want it to wrap. > > TEST ® ABC P-1700 CL 2612MPC > > > > I can make 1 modification that fixes it but I am unsure why it is needed > and again not sure of what else it will affect. > > Original code line 293 ‘while($i<$nb)’ > > This code fixes it ‘while($i<=$nb)’ > > > > where > > ‘$nb=mb_strlen($s);’ > > > > Ideas? > > > > > > Best Regards, > > Andrew Galuski > > ResMart LLC. > > 817.615.2038 (Office) > > 817.821.0544 (Cell) > > www.resmart.com > > [image: resmart_logo] > > > > *From:* Andrew Galuski [mailto:aga...@re...] > *Sent:* Friday, February 13, 2015 9:48 AM > > > *To:* webERP Developers > *Subject:* Re: [WebERP-developers] PDF generator in webERP. > > > > The missing spaces would make me have to alter too many forms I believe > but it is nice work. > > I think locally I can fix my issue with another small change. > > > > Best Regards, > > Andrew Galuski > > ResMart LLC. > > 817.615.2038 (Office) > > 817.821.0544 (Cell) > > www.resmart.com > > [image: resmart_logo] > > > > *From:* Rafael Chacón [mailto:raf...@gm... > <raf...@gm...>] > *Sent:* Wednesday, February 11, 2015 4:45 PM > *To:* webERP Developers > *Subject:* Re: [WebERP-developers] PDF generator in webERP. > > > > Hi Andrew, > > I enclose my new AddTextWrap. Inside ~/includes/class.pdf.php, replace > AddTextWrap lines (80-169) with lines 3-66 of the included file. > > Comments: > * I'm testing with last version of Nicola Asuni's TCPDF. > * It is possible to replace line 56 ("$textwidth += > $this->GetStringWidth($c);") with two lines. Those two lines makes the > function a little faster in some cases ($text width near the cell width), > but slower in other cases ($text width far from the cell width). > > Best regards, Rafael. > > > > 2015-02-11 16:19 GMT-06:00 Andrew Galuski <aga...@re...>: > > I am trouble shooting the same problem today where it wraps text smaller > than the width. The added $s = trim($s).' ';" causes an issue for me. Or > you can change a do while loop from < to <= $nb and it appears to fix same > issue. My worry was testing all existing forms. If you can send me your > update I will test it in my environment for all my forms. > > > > Sent from my BlackBerry 10 smartphone on the Verizon Wireless 4G LTE > network. > > *From: *Rafael Chacón > > *Sent: *Wednesday, February 11, 2015 3:26 PM > > *To: *webERP Developers > > *Reply To: *webERP Developers > > *Subject: *Re: [WebERP-developers] PDF generator in webERP. > > > > Hi Vitaly, > > Thank you for writing. > > About > "$lines=explode("\r\n",htmlspecialchars_decode($myrow2['narrative']));": > This line returns an array of strings, each of which is a substring of > $myrow2['narrative'] formed by splitting it on boundaries formed by the > characters Carriage_Return ("\r") and Line_Feed ("\n"). It only works for > msWindows (Unix-like and Mac OS-10 use Line_Feed; Mac OS up to version 9 > uses Carriage_Return). > > The problem in PrintCustTransPortrait.php (and other reports) is caused by > two bugs in AddTextWarp(): > > 1. Line 108: "$s = trim($s).' ';" (extra blank character -> the extra > white line). > 2. Lines from 106 to 164: (the logic of the code -> splitting in the last > white_space of a segment smaller that the cell width). > > My purpose in asking if someone "has problem with this function (last line > line-feeded before the end) ?" is know who else experiences that problem. > > I have a new AddTextWrap that fixes both bugs. It is faster and produces > PDF files with a slightly smaller size, but --obviously-- it not produce > the extra blank line in segments smaller than cell width. Many users like > this (no extra blank line) but there are some users who ask me to re-do > this extra blank line. > > I would like other people tests this new AddTextWrap. Although this extra > blank line is a bug, I am not comfortable with the idea of a potential > change in actual reports. > > Best regards, Rafael. > > > > 2015-02-11 8:25 GMT-06:00 Vitaly Shevkunov <vsh...@so...>: > > Rafael, > > The addTextWrap() does not split the line like that. It is done by this > function > $lines=explode("\r\n",htmlspecialchars_decode($myrow2['narrative'])); > > in PrintCustTransPortrait.php > > > Vitaly > > > > On 2/10/2015 9:38 PM, Rafael Chacón wrote: > > HI Phil, > > Thank you for your answer. > > Topic 1: From R&OS -> FPDF -> TCPDF. For future pdf development, I think > it will be better to directly use TCPDF: (a) Y-coordinate= instead of > calculating as from page-bottom to cell-bottom and the script class.pdf.php > translates to page-top to cell-top to use tcpdf.php, we can directly use > page-top to cell-top and TCPDF; (b) TCPDF has interesting functions > (writeHTML, writeHTMLCell, etc.) to write code html (a screen report) into > a pdf. > > Topic 2: tcpdf 6.2.6 has new fonts and others.They may be helpful to give > more options to reports. > > Topic 3: With PrintCustTransPortrait.php (and other reports) I have > unexpected breaks (see enclose) and prints lines with whitespace. The > problems are inside AddTextWarp(). > > Regards, Rafael. > > > > 2015-02-09 22:34 GMT-06:00 Phil Daintree <ph...@lo...>: > > Yes originally used R & OS pdf library. > Moved to Oliver Plathey FPDF http://www.fpdf.org/ > The class.pdf.php was created to allow the transition to FPDF > ... then to TCPDF which was a development of FPDF which allowed utf-8 > pdfs - using CID fonts rather than embedding a large monster font file into > each pdf - so a small 10k report becomes 2 Meg. This was not considered > acceptable. > I update tcpdf from time to time. > > Not sure about 3. > > Phil > > > > Phil Daintree > > Logic Works Ltd - +64 (0)275 567890 > > http://www.logicworks.co.nz > > On 10/02/15 13:37, Rafael Chacón wrote: > > Hi, > > Some questions: > > 1. webERP begun using PHP Pdf creation - R&OS ( > http://sourceforge.net/projects/pdf-php/). Then, webERP moved to TCPDF ( > http://www.tcpdf.org/). Javier de Lorenzo-Cáceres wrote > ~/includes/class.pdf.php to use TCPDF with "PHP_Pdf_creation_-_R&OS syntax" > (old code). Is it right? > > 2. Someone has updated the ~/includes/tcpdf folder with TCPDF version > 6.2.6 ? > > 3. Someone has replaced the function AddTextWarp() or has problem with > this function (last line line-feeded before the end) ? > > Best regards, Rafael. > > > > ------------------------------------------------------------------------------ > > Dive into the World of Parallel Programming. The Go Parallel Website, > > sponsored by Intel and developed in partnership with Slashdot Media, is your > > hub for all things parallel software development, from weekly thought > > leadership blogs to news, videos, case studies, tutorials and more. Take a > > look and join the conversation now. http://goparallel.sourceforge.net/ > > > > _______________________________________________ > > Web-erp-developers mailing list > > Web...@li... > > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > > > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming. The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is > your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > > > > > ------------------------------------------------------------------------------ > > Dive into the World of Parallel Programming. The Go Parallel Website, > > sponsored by Intel and developed in partnership with Slashdot Media, is your > > hub for all things parallel software development, from weekly thought > > leadership blogs to news, videos, case studies, tutorials and more. Take a > > look and join the conversation now. http://goparallel.sourceforge.net/ > > > > _______________________________________________ > > Web-erp-developers mailing list > > Web...@li... > > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > > > No virus found in this message. > Checked by AVG - www.avg.com > Version: 2015.0.5646 / Virus Database: 4284/9096 - Release Date: 02/11/15 > > > > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming. The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is > your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > > > > > > > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming. The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is > your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > > > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming. The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is > your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > > > > > > ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & more > Get technology previously reserved for billion-dollar corporations, FREE > > http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > |
From: Andrew G. <aga...@re...> - 2015-02-17 18:54:42
|
My problem is actually that the variable $nb is set to mb_strlen($s);. Since the ® character is counted as 1 by mb_strlen nb ends up being 1 less than the actual string length. So when I iterate while $i<$nb I always end up with a break if I have a multibyte character in the string (even though it is short enough to fit). If I change to $nb=iconv_strlen($s); then $nb is equal to the actual string length and I fit on 1 line (but I no longer get the extra line after. I do get the extra line after if no multi-byte characters are in the string. I think I have been on this too long. Best Regards, Andrew Galuski ResMart LLC. 817.615.2038 (Office) 817.821.0544 (Cell) www.resmart.com<http://www.resmart.com> [resmart_logo] From: Rafael Chacón [mailto:raf...@gm...] Sent: Friday, February 13, 2015 2:14 PM To: webERP Developers Subject: Re: [WebERP-developers] PDF generator in webERP. Hi Andrew, Sorry, just I read you messages. Yes, as I said in previous messages, this new AddTextWrap fixes the extra blank line bug. But if any user like this extra blank line bug, there is lot of work adding a extra line to reports. About the problem with your text: I think the text does not wrap because it is using a non-breaking space character instead of a white space character. A possible fix: $nbsp = html_entity_decode(' ', ENT_QUOTES, 'UTF-8');// Converts non-breaking space HTML entity to their applicable character. $text = str_replace($nbsp,' ',$text); Best regards, Rafael. 2015-02-13 13:53 GMT-06:00 Rafael Chacón <raf...@gm...<mailto:raf...@gm...>>: Hi, I enclose a uptdate to new addTextWrap. Changes: 1. Sets encoding 'UTF-8' in all multi-byte functions. 2. Adds the replace of '\n' text with a line feed character. This is to fix the possible introduction of a '\n' text instead of a line feed character. 3. Adds the delete of '\r' text. This is to fix the possible introduction of a '\r' text instead of a carriage return character. 4. Replaces hard hypen with soft hyphen as possible break position. 5. Privileges the use of mb_substr() instead of $text{$i} (deprecated? not multi-byte safe?) and $text[$i] (not multi-byte safe?). 6. Uses "greater than or equal to" comparison instead of "greater than" to cover the possibility of exact matches to exit for() loop. 7. Uses "less than or equal to" comparison instead of "less than" to cover the possibility of exact matches to exit for() loop. 8. Excludes the break character from the returned string. 9. Improves documentation and formatting. Best regards, Rafael. 2015-02-13 9:59 GMT-06:00 Andrew Galuski <aga...@re...<mailto:aga...@re...>>: Actually. My issue seems to be with special characters. Any help is appreciated. I can’t seem to figure out why. This Doesn’t Wrap on the invoice TEST trademark ABC P-1700 CL 2612MPC This does wrap (Much Shorter but Trademark sign inside of it). I don’t want it to wrap. TEST ® ABC P-1700 CL 2612MPC I can make 1 modification that fixes it but I am unsure why it is needed and again not sure of what else it will affect. Original code line 293 ‘while($i<$nb)’ This code fixes it ‘while($i<=$nb)’ where ‘$nb=mb_strlen($s);’ Ideas? Best Regards, Andrew Galuski ResMart LLC. 817.615.2038 (Office) 817.821.0544 (Cell) www.resmart.com<http://www.resmart.com> [resmart_logo] From: Andrew Galuski [mailto:aga...@re...<mailto:aga...@re...>] Sent: Friday, February 13, 2015 9:48 AM To: webERP Developers Subject: Re: [WebERP-developers] PDF generator in webERP. The missing spaces would make me have to alter too many forms I believe but it is nice work. I think locally I can fix my issue with another small change. Best Regards, Andrew Galuski ResMart LLC. 817.615.2038 (Office) 817.821.0544 (Cell) www.resmart.com<http://www.resmart.com> [resmart_logo] From: Rafael Chacón [mailto:raf...@gm...] Sent: Wednesday, February 11, 2015 4:45 PM To: webERP Developers Subject: Re: [WebERP-developers] PDF generator in webERP. Hi Andrew, I enclose my new AddTextWrap. Inside ~/includes/class.pdf.php, replace AddTextWrap lines (80-169) with lines 3-66 of the included file. Comments: * I'm testing with last version of Nicola Asuni's TCPDF. * It is possible to replace line 56 ("$textwidth += $this->GetStringWidth($c);") with two lines. Those two lines makes the function a little faster in some cases ($text width near the cell width), but slower in other cases ($text width far from the cell width). Best regards, Rafael. 2015-02-11 16:19 GMT-06:00 Andrew Galuski <aga...@re...<mailto:aga...@re...>>: I am trouble shooting the same problem today where it wraps text smaller than the width. The added $s = trim($s).' ';" causes an issue for me. Or you can change a do while loop from < to <= $nb and it appears to fix same issue. My worry was testing all existing forms. If you can send me your update I will test it in my environment for all my forms. Sent from my BlackBerry 10 smartphone on the Verizon Wireless 4G LTE network. From: Rafael Chacón Sent: Wednesday, February 11, 2015 3:26 PM To: webERP Developers Reply To: webERP Developers Subject: Re: [WebERP-developers] PDF generator in webERP. Hi Vitaly, Thank you for writing. About "$lines=explode("\r\n",htmlspecialchars_decode($myrow2['narrative']));": This line returns an array of strings, each of which is a substring of $myrow2['narrative'] formed by splitting it on boundaries formed by the characters Carriage_Return ("\r") and Line_Feed ("\n"). It only works for msWindows (Unix-like and Mac OS-10 use Line_Feed; Mac OS up to version 9 uses Carriage_Return). The problem in PrintCustTransPortrait.php (and other reports) is caused by two bugs in AddTextWarp(): 1. Line 108: "$s = trim($s).' ';" (extra blank character -> the extra white line). 2. Lines from 106 to 164: (the logic of the code -> splitting in the last white_space of a segment smaller that the cell width). My purpose in asking if someone "has problem with this function (last line line-feeded before the end) ?" is know who else experiences that problem. I have a new AddTextWrap that fixes both bugs. It is faster and produces PDF files with a slightly smaller size, but --obviously-- it not produce the extra blank line in segments smaller than cell width. Many users like this (no extra blank line) but there are some users who ask me to re-do this extra blank line. I would like other people tests this new AddTextWrap. Although this extra blank line is a bug, I am not comfortable with the idea of a potential change in actual reports. Best regards, Rafael. 2015-02-11 8:25 GMT-06:00 Vitaly Shevkunov <vsh...@so...<mailto:vsh...@so...>>: Rafael, The addTextWrap() does not split the line like that. It is done by this function $lines=explode("\r\n",htmlspecialchars_decode($myrow2['narrative'])); in PrintCustTransPortrait.php Vitaly On 2/10/2015 9:38 PM, Rafael Chacón wrote: HI Phil, Thank you for your answer. Topic 1: From R&OS -> FPDF -> TCPDF. For future pdf development, I think it will be better to directly use TCPDF: (a) Y-coordinate= instead of calculating as from page-bottom to cell-bottom and the script class.pdf.php translates to page-top to cell-top to use tcpdf.php, we can directly use page-top to cell-top and TCPDF; (b) TCPDF has interesting functions (writeHTML, writeHTMLCell, etc.) to write code html (a screen report) into a pdf. Topic 2: tcpdf 6.2.6 has new fonts and others.They may be helpful to give more options to reports. Topic 3: With PrintCustTransPortrait.php (and other reports) I have unexpected breaks (see enclose) and prints lines with whitespace. The problems are inside AddTextWarp(). Regards, Rafael. 2015-02-09 22:34 GMT-06:00 Phil Daintree <ph...@lo...<mailto:ph...@lo...>>: Yes originally used R & OS pdf library. Moved to Oliver Plathey FPDF http://www.fpdf.org/ The class.pdf.php was created to allow the transition to FPDF ... then to TCPDF which was a development of FPDF which allowed utf-8 pdfs - using CID fonts rather than embedding a large monster font file into each pdf - so a small 10k report becomes 2 Meg. This was not considered acceptable. I update tcpdf from time to time. Not sure about 3. Phil Phil Daintree Logic Works Ltd - +64 (0)275 567890 http://www.logicworks.co.nz On 10/02/15 13:37, Rafael Chacón wrote: Hi, Some questions: 1. webERP begun using PHP Pdf creation - R&OS (http://sourceforge.net/projects/pdf-php/). Then, webERP moved to TCPDF (http://www.tcpdf.org/). Javier de Lorenzo-Cáceres wrote ~/includes/class.pdf.php to use TCPDF with "PHP_Pdf_creation_-_R&OS syntax" (old code). Is it right? 2. Someone has updated the ~/includes/tcpdf folder with TCPDF version 6.2.6 ? 3. Someone has replaced the function AddTextWarp() or has problem with this function (last line line-feeded before the end) ? Best regards, Rafael. ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Web-erp-developers mailing list Web...@li...<mailto:Web...@li...> https://lists.sourceforge.net/lists/listinfo/web-erp-developers ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Web-erp-developers mailing list Web...@li...<mailto:Web...@li...> https://lists.sourceforge.net/lists/listinfo/web-erp-developers ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Web-erp-developers mailing list Web...@li...<mailto:Web...@li...> https://lists.sourceforge.net/lists/listinfo/web-erp-developers No virus found in this message. Checked by AVG - www.avg.com<http://www.avg.com> Version: 2015.0.5646 / Virus Database: 4284/9096 - Release Date: 02/11/15 ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Web-erp-developers mailing list Web...@li...<mailto:Web...@li...> https://lists.sourceforge.net/lists/listinfo/web-erp-developers ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Web-erp-developers mailing list Web...@li...<mailto:Web...@li...> https://lists.sourceforge.net/lists/listinfo/web-erp-developers ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Web-erp-developers mailing list Web...@li...<mailto:Web...@li...> https://lists.sourceforge.net/lists/listinfo/web-erp-developers |
From: gilberto d. s. a. <gs...@gm...> - 2015-02-16 23:42:05
|
Today i have make tests on label.php on weberp.org and downloaded and install new environment with weberp 4.12.2. Im my testes labels.php nor PDFPrintLabel.php have worked. Anyone already used on production this functions with sucess? inside this or old versions of weberp? Standard procedures and forms to labels have 3 columns for labels on a roll. (rolo em portugues) or a4 / letter layout. How could we increment alternatives for weberp users print barcode, qrcode? regards. 2015-02-12 0:22 GMT-02:00 <ph...@lo...>: > Well it looks like there is some problem with this script... > > http://www.weberp.org/weberp/Labels.php > > Should allow you to define labels with a number of fields - with one > option a barcode > > > On 2015-02-11 19:10, gilberto dos santos alves wrote: > > Please could some one point me one single example o barcode (ean13, > > code 39, upc-a, QR) inside weberp available on sourceforce? thanks for > > you time. > > > > 2015-02-11 20:15 GMT-02:00 Rafael Chacón > > <raf...@gm...>: > > > >> Hi, > >> > >> Thank you Wertthey. Very interesting. Barcodes are very useful in > >> several processes and they don't need special devices (an android > >> smarphone with ZXing's barcode scanner does the job!). > >> > >> In the past, we worked to have labels with barcode for products and > >> for product bins. It helps a lot in inventory control and in > >> picking/packing process. > >> > >> We used Folke Ashberg's PHP-Barcode. Today, we are looking for > >> moving the code to one of the libraries used by webERP: > >> 1. Tomáš Horáček's BarcodePack; or > >> 2. Nicola Asuni's TCPDF (http://www.tcpdf.org/ [11]). > >> > >> TCPDF is a library used in webERP's PDF output. It has 1D barcode in > >> HTML, PNG, SVG and SVGI formats. Also, it has datamatrix, pdf417 and > >> qrcode 2D barcodes; all in HTML, PNG, SVG and SVGI formats. > >> > >> Best regards, Rafael. > >> > >> 2015-02-11 14:27 GMT-06:00 <ph...@lo...>: > >> > >>> There is already a barcode library bundled with webERP see > >>> includes/barcodepack > >>> > >>> http://www.barcodepack.com [1] > >>> > >>> Which looks to be capable of producing qr codes. I hate to add > >>> duplicate > >>> code and would rather reuse what we have than add additional > >>> libraries. > >>> Maybe your label could be modified to use this class? > >>> > >>> Phil > >>> > >>> On 2015-02-11 09:36, wertthey wrote: > >>>> Over the last few years I keep adding the same code each > >>> revision I > >>>> upgrade I > >>>> think that it is very helpful and would like to share it. It > >>> uses code > >>>> from > >>>> > >>>> FROM > >>>> > >>>> http://phpqrcode.sourceforge.net/ [2] > >>>> > >>>> http://phpqrcode.sourceforge.net/examples/index.php [3] > >>>> > >>>> > >>>> * PHP QR Code is distributed under LGPL 3 > >>>> * Copyright (C) 2010 Dominik Dzienia > >>>> > >>>> > >>>> > >>>> I do understand that there is a whole label feature, but it > >>> really > >>>> doesn't > >>>> really work well for us. When I send our employees out to the > >>>> worksite on > >>>> a job, they where loosing (not accounting) for product that > >>> they > >>>> installed. > >>>> We would end up with a handful of postit notes and paper scraps > >>> of > >>>> product > >>>> that they used at the client (if we were lucky). [P.S. Almost > >>> never can > >>>> we > >>>> cut a sales order before sending out the employee. They never > >>> know > >>>> what > >>>> they need until they get there] It was a mess. > >>>> > >>>> So I added this to help us label EVERYTHING that we receive. > >>> When we > >>>> receive the product in shipping we add a label that allows us > >>> to > >>>> quickly > >>>> identify the product. This also allows us to have something > >>> that our > >>>> employees in the field can quickly capture on the cell phones > >>> (bar-code > >>>> box > >>>> scan app works well, and they can then email the list to our > >>> person > >>>> that > >>>> does the invoicing) We are no longer missing product and it > >>> allows us > >>>> to > >>>> quickly to invoice. > >>>> > >>>> > >>>> So during our receiving > >>> process................................... > >>>> > >>>> > >>>> As shipping receives the product. We have them count the items > >>> out of > >>>> the > >>>> box and then Enter the "This Delivery Quantity" At that time > >>> they > >>>> click on > >>>> the Item code, which opens a new unique (Not a Blank) target > >>> window to > >>>> show > >>>> the label. Rather than the photo. > >>>> > >>>> > >>> > >> > > < > http://weberp-accounting.1478800.n4.nabble.com/file/n4658077/GoodsReceived.jpg > >>> [4]> > >>>> > >>>> > >>>> > >>>> To make this work, I modified the follow line to > >>> GoodsReceived.php > >>>> below > >>>> the jwp > >>>> > >>>> ####MODIFICATION FOR THE GoodsReceived.php > >>>> ############################## > >>>> > >>>> > >>>> ####MODIFICATION FOR THE GoodsReceived.php > >>>> ############################## > >>>> > >>>> > >>> > >> > > <http://weberp-accounting.1478800.n4.nabble.com/file/n4658077/label.jpg > >>> [5]> > >>>> > >>>> this label is really nice as we have a few dymo labelwriter 400 > >>> which > >>>> can > >>>> print it on a on cheap address labels. The shipping person > >>> just hits > >>>> print > >>>> in the browser and chooses the number of copies. no pdf etc. > >>> Just > >>>> print. > >>>> > >>>> If for some reason we find a part in the stock room that does > >>> not have > >>>> a > >>>> label, I have modified the SelectProduct.php page so that while > >>> you are > >>>> looking at the item you can print a label. > >>>> > >>>> > >>> > >> > > < > http://weberp-accounting.1478800.n4.nabble.com/file/n4658077/SelectProduct.jpg > >>> [6]> > >>>> > >>>> which opens the label in its own page. > >>>> > >>>> > >>> > >> > > < > http://weberp-accounting.1478800.n4.nabble.com/file/n4658077/labelPower.jpg > >>> [7]> > >>>> > >>>> > >>>> To make this work, I modified the follow line to > >>> SelectProduct.php > >>>> below > >>>> the jwp > >>>> > >>>> ####MODIFICATION FOR THE SelectProduct.php > >>>> ############################## > >>>> > >>>> > >>>> > >>>> ####MODIFICATION FOR THE SelectProduct.php > >>>> ############################## > >>>> > >>>> > >>>> the code from http://phpqrcode.sourceforge.net/ [2] resides > >>> for me under > >>>> > >>>> /qrcode/phpqrcode/ > >>>> > >>>> > >>>> where I modified the index.php that came with the phpqrcode. > >>>> from (Copyright (C) 2010 Dominik Dzienia ) so it looks like > >>>> > >>>> > >>>> ####MODIFICATION FOR THE LABEL index.php > >>> ############################## > >>>> > >>>> > >>>> > >>>> ####MODIFICATION FOR THE LABEL index.php > >>> ############################## > >>>> > >>>> > >>>> It would be nice to be able to have a setting for both the > >>> label image > >>>> size > >>>> pixels and the qrcode size (1-5) in setup System Parameters > >>> since the > >>>> description and the part number are already limited in size it > >>> works > >>>> out > >>>> nicely. > >>>> > >>>> > >>>> I hope this helps someone and I would hope even more, it may be > >>> added > >>>> to > >>>> future versions. > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> ----- > >>>> Using weberp since 2004, Thanks for all your hard work! > >>>> -- > >>>> View this message in context: > >>>> > >>> > >> > > > http://weberp-accounting.1478800.n4.nabble.com/For-Consideration-Added-qrcode-for-part-labeling-tp4658077.html > >>> [8] > >>>> Sent from the web-ERP-developers mailing list archive at > >>> Nabble.com. > >>>> > >>>> > >>> > >> > > > ------------------------------------------------------------------------------ > >>>> Dive into the World of Parallel Programming. The Go Parallel > >>> Website, > >>>> sponsored by Intel and developed in partnership with Slashdot > >>> Media, is > >>>> your > >>>> hub for all things parallel software development, from weekly > >>> thought > >>>> leadership blogs to news, videos, case studies, tutorials and > >>> more. > >>>> Take a > >>>> look and join the conversation now. > >>> http://goparallel.sourceforge.net/ [9] > >>>> _______________________________________________ > >>>> Web-erp-developers mailing list > >>>> Web...@li... > >>>> https://lists.sourceforge.net/lists/listinfo/web-erp-developers > >>> [10] > >>> > >>> > >> > > > ------------------------------------------------------------------------------ > >>> Dive into the World of Parallel Programming. The Go Parallel > >>> Website, > >>> sponsored by Intel and developed in partnership with Slashdot > >>> Media, is your > >>> hub for all things parallel software development, from weekly > >>> thought > >>> leadership blogs to news, videos, case studies, tutorials and > >>> more. Take a > >>> look and join the conversation now. > >>> http://goparallel.sourceforge.net/ [9] > >>> _______________________________________________ > >>> Web-erp-developers mailing list > >>> Web...@li... > >>> https://lists.sourceforge.net/lists/listinfo/web-erp-developers > >>> [10] > >> > >> > > > ------------------------------------------------------------------------------ > >> Dive into the World of Parallel Programming. The Go Parallel > >> Website, > >> sponsored by Intel and developed in partnership with Slashdot > >> Media, is your > >> hub for all things parallel software development, from weekly > >> thought > >> leadership blogs to news, videos, case studies, tutorials and more. > >> Take a > >> look and join the conversation now. > >> http://goparallel.sourceforge.net/ [9] > >> _______________________________________________ > >> Web-erp-developers mailing list > >> Web...@li... > >> https://lists.sourceforge.net/lists/listinfo/web-erp-developers > >> [10] > > > > -- > > > > gilberto dos santos alves > > +55(11)9-8646-5049 > > sao paulo - sp - brasil > > > > > > > > Links: > > ------ > > [1] http://www.barcodepack.com > > [2] http://phpqrcode.sourceforge.net/ > > [3] http://phpqrcode.sourceforge.net/examples/index.php > > [4] > > > http://weberp-accounting.1478800.n4.nabble.com/file/n4658077/GoodsReceived.jpg > > [5] > > http://weberp-accounting.1478800.n4.nabble.com/file/n4658077/label.jpg > > [6] > > > http://weberp-accounting.1478800.n4.nabble.com/file/n4658077/SelectProduct.jpg > > [7] > > > http://weberp-accounting.1478800.n4.nabble.com/file/n4658077/labelPower.jpg > > [8] > > > http://weberp-accounting.1478800.n4.nabble.com/For-Consideration-Added-qrcode-for-part-labeling-tp4658077.html > > [9] http://goparallel.sourceforge.net/ > > [10] https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > [11] http://www.tcpdf.org/ > > > > > ------------------------------------------------------------------------------ > > Dive into the World of Parallel Programming. The Go Parallel Website, > > sponsored by Intel and developed in partnership with Slashdot Media, is > > your > > hub for all things parallel software development, from weekly thought > > leadership blogs to news, videos, case studies, tutorials and more. > > Take a > > look and join the conversation now. http://goparallel.sourceforge.net/ > > > > _______________________________________________ > > Web-erp-developers mailing list > > Web...@li... > > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming. The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is > your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > -- gilberto dos santos alves +55(11)9-8646-5049 sao paulo - sp - brasil |
From: Rafael C. <raf...@gm...> - 2015-02-14 15:10:08
|
Hi Vitaly, I am happy that this code helps you. About putting the $fill parameter back: I think it is possible, but we need help. I explain myself: * In ~/includes/class.pdf.php, in function AddTextWrap(), there are two additional parameters: $border and $fill. $border is "translated" to 'LTRB' and sets two variables: $b and $b2; but $border and $b2 are not used to produce any output. Also $fill do not produce any output (only is mentioned in the argument list). * In R&OS there are two other parameters: $angle and $test. Those parameters have no relation with $border and $fill. We just copy for compatibility. * R&OS deletes addTextWrap() in version 0.12.2 and recommends to "use addText instead". The version we have has a little documentation ($test = "need to store the initial text state, as this will change during the width calculation but will need to be re-set before printing, so that the chars work out right"). We are assuming that $border and $fill were included in ~/includes/class.pdf.php with the same purpose they have in ~/includes/tcpdf/tcpdf.php. For compatibility purposes, We leave $angle and $test as they are in original R&OS's AddTextWrap() function. We add $border and $fill as they are in original Nicola Asuni's TCPDF library. I enclose this update. Here, the direct use of Nicola Asuni's TCPDF library is preferred. I agree with that those functions have more features and the scripts will be faster, but I am not sure about implications of this for users (e.g. fixing the extra blank line bug). Best regards, Rafael. 2015-02-13 21:05 GMT-06:00 Vitaly Shevkunov <vsh...@so...>: > Hi Rafael, > > I applied your updated function to my code and started testing. So far I > like it very much. I does everything that I expected that function to do in > the first place. I found some problems in some of my forms, but not too > many. All of them due to my hacking, trying to get that function to do what > it was not doing before. > The only change I would make is to put the $fill parameter back. It is a > very useful feature for me. > > Thank you very much > > Vitaly > > On 2/13/2015 2:14 PM, Rafael Chacón wrote: > > Hi Andrew, > > Sorry, just I read you messages. > > Yes, as I said in previous messages, this new AddTextWrap fixes the extra > blank line bug. But if any user like this extra blank line bug, there is > lot of work adding a extra line to reports. > > About the problem with your text: > > I think the text does not wrap because it is using a non-breaking space > character instead of a white space character. > > A possible fix: > > $nbsp = html_entity_decode(' ', ENT_QUOTES, 'UTF-8');// Converts > non-breaking space HTML entity to their applicable character. > $text = str_replace($nbsp,' ',$text); > > Best regards, Rafael. > > 2015-02-13 13:53 GMT-06:00 Rafael Chacón <raf...@gm...>: > >> Hi, >> >> I enclose a uptdate to new addTextWrap. >> >> Changes: >> 1. Sets encoding 'UTF-8' in all multi-byte functions. >> 2. Adds the replace of '\n' text with a line feed character. This is to >> fix the possible introduction of a '\n' text instead of a line feed >> character. >> 3. Adds the delete of '\r' text. This is to fix the possible introduction >> of a '\r' text instead of a carriage return character. >> 4. Replaces hard hypen with soft hyphen as possible break position. >> 5. Privileges the use of mb_substr() instead of $text{$i} (deprecated? >> not multi-byte safe?) and $text[$i] (not multi-byte safe?). >> 6. Uses "greater than or equal to" comparison instead of "greater than" >> to cover the possibility of exact matches to exit for() loop. >> 7. Uses "less than or equal to" comparison instead of "less than" to >> cover the possibility of exact matches to exit for() loop. >> 8. Excludes the break character from the returned string. >> 9. Improves documentation and formatting. >> >> Best regards, Rafael. >> >> 2015-02-13 9:59 GMT-06:00 Andrew Galuski <aga...@re...>: >> >> Actually. >>> >>> My issue seems to be with special characters. Any help is appreciated. >>> I can’t seem to figure out why. >>> >>> This Doesn’t Wrap on the invoice >>> >>> TEST trademark ABC P-1700 CL 2612MPC >>> >>> >>> This does wrap (Much Shorter but Trademark sign inside of it). I don’t >>> want it to wrap. >>> >>> TEST ® ABC P-1700 CL 2612MPC >>> >>> >>> >>> I can make 1 modification that fixes it but I am unsure why it is needed >>> and again not sure of what else it will affect. >>> >>> Original code line 293 ‘while($i<$nb)’ >>> >>> This code fixes it ‘while($i<=$nb)’ >>> >>> >>> >>> where >>> >>> ‘$nb=mb_strlen($s);’ >>> >>> >>> >>> Ideas? >>> >>> >>> >>> >>> >>> Best Regards, >>> >>> Andrew Galuski >>> >>> ResMart LLC. >>> >>> 817.615.2038 (Office) >>> >>> 817.821.0544 (Cell) >>> >>> www.resmart.com >>> >>> [image: resmart_logo] >>> >>> >>> >>> *From:* Andrew Galuski [mailto:aga...@re...] >>> *Sent:* Friday, February 13, 2015 9:48 AM >>> >>> *To:* webERP Developers >>> *Subject:* Re: [WebERP-developers] PDF generator in webERP. >>> >>> >>> >>> The missing spaces would make me have to alter too many forms I believe >>> but it is nice work. >>> >>> I think locally I can fix my issue with another small change. >>> >>> >>> >>> Best Regards, >>> >>> Andrew Galuski >>> >>> ResMart LLC. >>> >>> 817.615.2038 (Office) >>> >>> 817.821.0544 (Cell) >>> >>> www.resmart.com >>> >>> [image: resmart_logo] >>> >>> >>> >>> *From:* Rafael Chacón [mailto:raf...@gm... >>> <raf...@gm...>] >>> *Sent:* Wednesday, February 11, 2015 4:45 PM >>> *To:* webERP Developers >>> *Subject:* Re: [WebERP-developers] PDF generator in webERP. >>> >>> >>> >>> Hi Andrew, >>> >>> I enclose my new AddTextWrap. Inside ~/includes/class.pdf.php, replace >>> AddTextWrap lines (80-169) with lines 3-66 of the included file. >>> >>> Comments: >>> * I'm testing with last version of Nicola Asuni's TCPDF. >>> * It is possible to replace line 56 ("$textwidth += >>> $this->GetStringWidth($c);") with two lines. Those two lines makes the >>> function a little faster in some cases ($text width near the cell width), >>> but slower in other cases ($text width far from the cell width). >>> >>> Best regards, Rafael. >>> >>> >>> >>> 2015-02-11 16:19 GMT-06:00 Andrew Galuski <aga...@re...>: >>> >>> I am trouble shooting the same problem today where it wraps text smaller >>> than the width. The added $s = trim($s).' ';" causes an issue for me. >>> Or you can change a do while loop from < to <= $nb and it appears to fix >>> same issue. My worry was testing all existing forms. If you can send me >>> your update I will test it in my environment for all my forms. >>> >>> >>> >>> Sent from my BlackBerry 10 smartphone on the Verizon Wireless 4G LTE >>> network. >>> >>> *From: *Rafael Chacón >>> >>> *Sent: *Wednesday, February 11, 2015 3:26 PM >>> >>> *To: *webERP Developers >>> >>> *Reply To: *webERP Developers >>> >>> *Subject: *Re: [WebERP-developers] PDF generator in webERP. >>> >>> >>> >>> Hi Vitaly, >>> >>> Thank you for writing. >>> >>> About >>> "$lines=explode("\r\n",htmlspecialchars_decode($myrow2['narrative']));": >>> This line returns an array of strings, each of which is a substring of >>> $myrow2['narrative'] formed by splitting it on boundaries formed by the >>> characters Carriage_Return ("\r") and Line_Feed ("\n"). It only works for >>> msWindows (Unix-like and Mac OS-10 use Line_Feed; Mac OS up to version 9 >>> uses Carriage_Return). >>> >>> The problem in PrintCustTransPortrait.php (and other reports) is caused >>> by two bugs in AddTextWarp(): >>> >>> 1. Line 108: "$s = trim($s).' ';" (extra blank character -> the extra >>> white line). >>> 2. Lines from 106 to 164: (the logic of the code -> splitting in the >>> last white_space of a segment smaller that the cell width). >>> >>> My purpose in asking if someone "has problem with this function (last >>> line line-feeded before the end) ?" is know who else experiences that >>> problem. >>> >>> I have a new AddTextWrap that fixes both bugs. It is faster and produces >>> PDF files with a slightly smaller size, but --obviously-- it not produce >>> the extra blank line in segments smaller than cell width. Many users like >>> this (no extra blank line) but there are some users who ask me to re-do >>> this extra blank line. >>> >>> I would like other people tests this new AddTextWrap. Although this >>> extra blank line is a bug, I am not comfortable with the idea of a >>> potential change in actual reports. >>> >>> Best regards, Rafael. >>> >>> >>> >>> 2015-02-11 8:25 GMT-06:00 Vitaly Shevkunov <vsh...@so...>: >>> >>> Rafael, >>> >>> The addTextWrap() does not split the line like that. It is done by this >>> function >>> $lines=explode("\r\n",htmlspecialchars_decode($myrow2['narrative'])); >>> >>> in PrintCustTransPortrait.php >>> >>> >>> Vitaly >>> >>> >>> >>> On 2/10/2015 9:38 PM, Rafael Chacón wrote: >>> >>> HI Phil, >>> >>> Thank you for your answer. >>> >>> Topic 1: From R&OS -> FPDF -> TCPDF. For future pdf development, I think >>> it will be better to directly use TCPDF: (a) Y-coordinate= instead of >>> calculating as from page-bottom to cell-bottom and the script class.pdf.php >>> translates to page-top to cell-top to use tcpdf.php, we can directly use >>> page-top to cell-top and TCPDF; (b) TCPDF has interesting functions >>> (writeHTML, writeHTMLCell, etc.) to write code html (a screen report) into >>> a pdf. >>> >>> Topic 2: tcpdf 6.2.6 has new fonts and others.They may be helpful to >>> give more options to reports. >>> >>> Topic 3: With PrintCustTransPortrait.php (and other reports) I have >>> unexpected breaks (see enclose) and prints lines with whitespace. The >>> problems are inside AddTextWarp(). >>> >>> Regards, Rafael. >>> >>> >>> >>> 2015-02-09 22:34 GMT-06:00 Phil Daintree <ph...@lo...>: >>> >>> Yes originally used R & OS pdf library. >>> Moved to Oliver Plathey FPDF http://www.fpdf.org/ >>> The class.pdf.php was created to allow the transition to FPDF >>> ... then to TCPDF which was a development of FPDF which allowed utf-8 >>> pdfs - using CID fonts rather than embedding a large monster font file into >>> each pdf - so a small 10k report becomes 2 Meg. This was not considered >>> acceptable. >>> I update tcpdf from time to time. >>> >>> Not sure about 3. >>> >>> Phil >>> >>> >>> >>> Phil Daintree >>> >>> Logic Works Ltd - +64 (0)275 567890 >>> >>> http://www.logicworks.co.nz >>> >>> On 10/02/15 13:37, Rafael Chacón wrote: >>> >>> Hi, >>> >>> Some questions: >>> >>> 1. webERP begun using PHP Pdf creation - R&OS ( >>> http://sourceforge.net/projects/pdf-php/). Then, webERP moved to TCPDF ( >>> http://www.tcpdf.org/). Javier de Lorenzo-Cáceres wrote >>> ~/includes/class.pdf.php to use TCPDF with "PHP_Pdf_creation_-_R&OS syntax" >>> (old code). Is it right? >>> >>> 2. Someone has updated the ~/includes/tcpdf folder with TCPDF version >>> 6.2.6 ? >>> >>> 3. Someone has replaced the function AddTextWarp() or has problem with >>> this function (last line line-feeded before the end) ? >>> >>> Best regards, Rafael. >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> >>> Dive into the World of Parallel Programming. The Go Parallel Website, >>> >>> sponsored by Intel and developed in partnership with Slashdot Media, is your >>> >>> hub for all things parallel software development, from weekly thought >>> >>> leadership blogs to news, videos, case studies, tutorials and more. Take a >>> >>> look and join the conversation now. http://goparallel.sourceforge.net/ >>> >>> >>> >>> _______________________________________________ >>> >>> Web-erp-developers mailing list >>> >>> Web...@li... >>> >>> https://lists.sourceforge.net/lists/listinfo/web-erp-developers >>> >>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Dive into the World of Parallel Programming. The Go Parallel Website, >>> sponsored by Intel and developed in partnership with Slashdot Media, is >>> your >>> hub for all things parallel software development, from weekly thought >>> leadership blogs to news, videos, case studies, tutorials and more. Take >>> a >>> look and join the conversation now. http://goparallel.sourceforge.net/ >>> _______________________________________________ >>> Web-erp-developers mailing list >>> Web...@li... >>> https://lists.sourceforge.net/lists/listinfo/web-erp-developers >>> >>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> >>> Dive into the World of Parallel Programming. The Go Parallel Website, >>> >>> sponsored by Intel and developed in partnership with Slashdot Media, is your >>> >>> hub for all things parallel software development, from weekly thought >>> >>> leadership blogs to news, videos, case studies, tutorials and more. Take a >>> >>> look and join the conversation now. http://goparallel.sourceforge.net/ >>> >>> >>> >>> _______________________________________________ >>> >>> Web-erp-developers mailing list >>> >>> Web...@li... >>> >>> https://lists.sourceforge.net/lists/listinfo/web-erp-developers >>> >>> >>> >>> No virus found in this message. >>> Checked by AVG - www.avg.com >>> Version: 2015.0.5646 / Virus Database: 4284/9096 - Release Date: 02/11/15 >>> >>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Dive into the World of Parallel Programming. The Go Parallel Website, >>> sponsored by Intel and developed in partnership with Slashdot Media, is >>> your >>> hub for all things parallel software development, from weekly thought >>> leadership blogs to news, videos, case studies, tutorials and more. Take >>> a >>> look and join the conversation now. http://goparallel.sourceforge.net/ >>> _______________________________________________ >>> Web-erp-developers mailing list >>> Web...@li... >>> https://lists.sourceforge.net/lists/listinfo/web-erp-developers >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Dive into the World of Parallel Programming. The Go Parallel Website, >>> sponsored by Intel and developed in partnership with Slashdot Media, is >>> your >>> hub for all things parallel software development, from weekly thought >>> leadership blogs to news, videos, case studies, tutorials and more. Take >>> a >>> look and join the conversation now. http://goparallel.sourceforge.net/ >>> _______________________________________________ >>> Web-erp-developers mailing list >>> Web...@li... >>> https://lists.sourceforge.net/lists/listinfo/web-erp-developers >>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Dive into the World of Parallel Programming. The Go Parallel Website, >>> sponsored by Intel and developed in partnership with Slashdot Media, is >>> your >>> hub for all things parallel software development, from weekly thought >>> leadership blogs to news, videos, case studies, tutorials and more. Take >>> a >>> look and join the conversation now. http://goparallel.sourceforge.net/ >>> _______________________________________________ >>> Web-erp-developers mailing list >>> Web...@li... >>> https://lists.sourceforge.net/lists/listinfo/web-erp-developers >>> >>> >> > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming. The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net/ > > > > _______________________________________________ > Web-erp-developers mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > > > No virus found in this message. > Checked by AVG - www.avg.com > Version: 2015.0.5646 / Virus Database: 4284/9102 - Release Date: 02/12/15 > > > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming. The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is > your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > |
From: Vitaly S. <vsh...@so...> - 2015-02-14 03:05:23
|
Hi Rafael, I applied your updated function to my code and started testing. So far I like it very much. I does everything that I expected that function to do in the first place. I found some problems in some of my forms, but not too many. All of them due to my hacking, trying to get that function to do what it was not doing before. The only change I would make is to put the $fill parameter back. It is a very useful feature for me. Thank you very much Vitaly On 2/13/2015 2:14 PM, Rafael Chacón wrote: > Hi Andrew, > > Sorry, just I read you messages. > > Yes, as I said in previous messages, this new AddTextWrap fixes the > extra blank line bug. But if any user like this extra blank line bug, > there is lot of work adding a extra line to reports. > > About the problem with your text: > > I think the text does not wrap because it is using a non-breaking > space character instead of a white space character. > > A possible fix: > > $nbsp = html_entity_decode(' ', ENT_QUOTES, 'UTF-8');// Converts > non-breaking space HTML entity to their applicable character. > $text = str_replace($nbsp,' ',$text); > > Best regards, Rafael. > > 2015-02-13 13:53 GMT-06:00 Rafael Chacón > <raf...@gm... <mailto:raf...@gm...>>: > > Hi, > > I enclose a uptdate to new addTextWrap. > > Changes: > 1. Sets encoding 'UTF-8' in all multi-byte functions. > 2. Adds the replace of '\n' text with a line feed character. This > is to fix the possible introduction of a '\n' text instead of a > line feed character. > 3. Adds the delete of '\r' text. This is to fix the possible > introduction of a '\r' text instead of a carriage return character. > 4. Replaces hard hypen with soft hyphen as possible break position. > 5. Privileges the use of mb_substr() instead of $text{$i} > (deprecated? not multi-byte safe?) and $text[$i] (not multi-byte > safe?). > 6. Uses "greater than or equal to" comparison instead of "greater > than" to cover the possibility of exact matches to exit for() loop. > 7. Uses "less than or equal to" comparison instead of "less than" > to cover the possibility of exact matches to exit for() loop. > 8. Excludes the break character from the returned string. > 9. Improves documentation and formatting. > > Best regards, Rafael. > > 2015-02-13 9:59 GMT-06:00 Andrew Galuski <aga...@re... > <mailto:aga...@re...>>: > > Actually. > > My issue seems to be with special characters. Any help is > appreciated. I can’t seem to figure out why. > > This Doesn’t Wrap on the invoice > > TEST trademark ABC P-1700 CL 2612MPC > > > This does wrap (Much Shorter but Trademark sign inside of it). > I don’t want it to wrap. > > TEST ® ABC P-1700 CL 2612MPC > > I can make 1 modification that fixes it but I am unsure why it > is needed and again not sure of what else it will affect. > > Original code line 293 ‘while($i<$nb)’ > > This code fixes it ‘while($i<=$nb)’ > > where > > ‘$nb=mb_strlen($s);’ > > Ideas? > > Best Regards, > > Andrew Galuski > > ResMart LLC. > > 817.615.2038 (Office) > > 817.821.0544 (Cell) > > www.resmart.com <http://www.resmart.com> > > resmart_logo > > *From:*Andrew Galuski [mailto:aga...@re... > <mailto:aga...@re...>] > *Sent:* Friday, February 13, 2015 9:48 AM > > > *To:* webERP Developers > *Subject:* Re: [WebERP-developers] PDF generator in webERP. > > The missing spaces would make me have to alter too many forms > I believe but it is nice work. > > I think locally I can fix my issue with another small change. > > Best Regards, > > Andrew Galuski > > ResMart LLC. > > 817.615.2038 (Office) > > 817.821.0544 (Cell) > > www.resmart.com <http://www.resmart.com> > > resmart_logo > > *From:*Rafael Chacón [mailto:raf...@gm...] > *Sent:* Wednesday, February 11, 2015 4:45 PM > *To:* webERP Developers > *Subject:* Re: [WebERP-developers] PDF generator in webERP. > > Hi Andrew, > > I enclose my new AddTextWrap. Inside ~/includes/class.pdf.php, > replace AddTextWrap lines (80-169) with lines 3-66 of the > included file. > > Comments: > * I'm testing with last version of Nicola Asuni's TCPDF. > * It is possible to replace line 56 ("$textwidth += > $this->GetStringWidth($c);") with two lines. Those two lines > makes the function a little faster in some cases ($text width > near the cell width), but slower in other cases ($text width > far from the cell width). > > Best regards, Rafael. > > 2015-02-11 16:19 GMT-06:00 Andrew Galuski > <aga...@re... <mailto:aga...@re...>>: > > I am trouble shooting the same problem today where it wraps > text smaller than the width. The added $s = trim($s).' ';" > causes an issue for me. Or you can change a do while loop from > < to <= $nb and it appears to fix same issue. My worry was > testing all existing forms. If you can send me your update I > will test it in my environment for all my forms. > > Sent from my BlackBerry 10 smartphone on the Verizon Wireless > 4G LTE network. > > *From: *Rafael Chacón > > *Sent: *Wednesday, February 11, 2015 3:26 PM > > *To: *webERP Developers > > *Reply To: *webERP Developers > > *Subject: *Re: [WebERP-developers] PDF generator in webERP. > > Hi Vitaly, > > Thank you for writing. > > About > "$lines=explode("\r\n",htmlspecialchars_decode($myrow2['narrative']));": > This line returns an array of strings, each of which is a > substring of $myrow2['narrative'] formed by splitting it on > boundaries formed by the characters Carriage_Return ("\r") and > Line_Feed ("\n"). It only works for msWindows (Unix-like and > Mac OS-10 use Line_Feed; Mac OS up to version 9 uses > Carriage_Return). > > The problem in PrintCustTransPortrait.php (and other reports) > is caused by two bugs in AddTextWarp(): > > 1. Line 108: "$s = trim($s).' ';" (extra blank character -> > the extra white line). > 2. Lines from 106 to 164: (the logic of the code -> splitting > in the last white_space of a segment smaller that the cell width). > > My purpose in asking if someone "has problem with this > function (last line line-feeded before the end) ?" is know who > else experiences that problem. > > I have a new AddTextWrap that fixes both bugs. It is faster > and produces PDF files with a slightly smaller size, but > --obviously-- it not produce the extra blank line in segments > smaller than cell width. Many users like this (no extra blank > line) but there are some users who ask me to re-do this extra > blank line. > > I would like other people tests this new AddTextWrap. Although > this extra blank line is a bug, I am not comfortable with the > idea of a potential change in actual reports. > > Best regards, Rafael. > > 2015-02-11 8:25 GMT-06:00 Vitaly Shevkunov > <vsh...@so... <mailto:vsh...@so...>>: > > Rafael, > > The addTextWrap() does not split the line like that. It is > done by this function > $lines=explode("\r\n",htmlspecialchars_decode($myrow2['narrative'])); > > in PrintCustTransPortrait.php > > > Vitaly > > > > On 2/10/2015 9:38 PM, Rafael Chacón wrote: > > HI Phil, > > Thank you for your answer. > > Topic 1: From R&OS -> FPDF -> TCPDF. For future pdf > development, I think it will be better to directly use > TCPDF: (a) Y-coordinate= instead of calculating as from > page-bottom to cell-bottom and the script class.pdf.php > translates to page-top to cell-top to use tcpdf.php, we > can directly use page-top to cell-top and TCPDF; (b) TCPDF > has interesting functions (writeHTML, writeHTMLCell, etc.) > to write code html (a screen report) into a pdf. > > Topic 2: tcpdf 6.2.6 has new fonts and others.They may be > helpful to give more options to reports. > > Topic 3: With PrintCustTransPortrait.php (and other > reports) I have unexpected breaks (see enclose) and prints > lines with whitespace. The problems are inside AddTextWarp(). > > Regards, Rafael. > > 2015-02-09 22:34 GMT-06:00 Phil Daintree > <ph...@lo... <mailto:ph...@lo...>>: > > Yes originally used R & OS pdf library. > Moved to Oliver Plathey FPDF http://www.fpdf.org/ > The class.pdf.php was created to allow the transition to FPDF > ... then to TCPDF which was a development of FPDF which > allowed utf-8 pdfs - using CID fonts rather than embedding > a large monster font file into each pdf - so a small 10k > report becomes 2 Meg. This was not considered acceptable. > I update tcpdf from time to time. > > Not sure about 3. > > Phil > > > > Phil Daintree > > Logic Works Ltd - +64 (0)275 567890 > > http://www.logicworks.co.nz > > On 10/02/15 13:37, Rafael Chacón wrote: > > Hi, > > Some questions: > > 1. webERP begun using PHP Pdf creation - R&OS > (http://sourceforge.net/projects/pdf-php/). Then, > webERP moved to TCPDF (http://www.tcpdf.org/). Javier > de Lorenzo-Cáceres wrote ~/includes/class.pdf.php to > use TCPDF with "PHP_Pdf_creation_-_R&OS syntax" (old > code). Is it right? > > 2. Someone has updated the ~/includes/tcpdf folder > with TCPDF version 6.2.6 ? > > 3. Someone has replaced the function AddTextWarp() or > has problem with this function (last line line-feeded > before the end) ? > > Best regards, Rafael. > > ------------------------------------------------------------------------------ > > Dive into the World of Parallel Programming. The Go Parallel Website, > > sponsored by Intel and developed in partnership with Slashdot Media, is your > > hub for all things parallel software development, from weekly thought > > leadership blogs to news, videos, case studies, tutorials and more. Take a > > look and join the conversation now.http://goparallel.sourceforge.net/ > > _______________________________________________ > > Web-erp-developers mailing list > > Web...@li... <mailto:Web...@li...> > > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming. The Go > Parallel Website, > sponsored by Intel and developed in partnership with > Slashdot Media, is your > hub for all things parallel software development, from > weekly thought > leadership blogs to news, videos, case studies, tutorials > and more. Take a > look and join the conversation now. > http://goparallel.sourceforge.net/ > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > <mailto:Web...@li...> > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > ------------------------------------------------------------------------------ > > Dive into the World of Parallel Programming. The Go Parallel Website, > > sponsored by Intel and developed in partnership with Slashdot Media, is your > > hub for all things parallel software development, from weekly thought > > leadership blogs to news, videos, case studies, tutorials and more. Take a > > look and join the conversation now.http://goparallel.sourceforge.net/ > > _______________________________________________ > > Web-erp-developers mailing list > > Web...@li... <mailto:Web...@li...> > > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > No virus found in this message. > Checked by AVG - www.avg.com <http://www.avg.com> > Version: 2015.0.5646 / Virus Database: 4284/9096 - Release > Date: 02/11/15 > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming. The Go Parallel > Website, > sponsored by Intel and developed in partnership with Slashdot > Media, is your > hub for all things parallel software development, from weekly > thought > leadership blogs to news, videos, case studies, tutorials and > more. Take a > look and join the conversation now. > http://goparallel.sourceforge.net/ > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > <mailto:Web...@li...> > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming. The Go Parallel > Website, > sponsored by Intel and developed in partnership with Slashdot > Media, is your > hub for all things parallel software development, from weekly > thought > leadership blogs to news, videos, case studies, tutorials and > more. Take a > look and join the conversation now. > http://goparallel.sourceforge.net/ > <http://goparallel.sourceforge.net/> > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > <mailto:Web...@li...> > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming. The Go Parallel > Website, > sponsored by Intel and developed in partnership with Slashdot > Media, is your > hub for all things parallel software development, from weekly > thought > leadership blogs to news, videos, case studies, tutorials and > more. Take a > look and join the conversation now. > http://goparallel.sourceforge.net/ > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > <mailto:Web...@li...> > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > > > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming. The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net/ > > > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > > No virus found in this message. > Checked by AVG - www.avg.com <http://www.avg.com> > Version: 2015.0.5646 / Virus Database: 4284/9102 - Release Date: 02/12/15 > |
From: Rafael C. <raf...@gm...> - 2015-02-13 20:14:16
|
Hi Andrew, Sorry, just I read you messages. Yes, as I said in previous messages, this new AddTextWrap fixes the extra blank line bug. But if any user like this extra blank line bug, there is lot of work adding a extra line to reports. About the problem with your text: I think the text does not wrap because it is using a non-breaking space character instead of a white space character. A possible fix: $nbsp = html_entity_decode(' ', ENT_QUOTES, 'UTF-8');// Converts non-breaking space HTML entity to their applicable character. $text = str_replace($nbsp,' ',$text); Best regards, Rafael. 2015-02-13 13:53 GMT-06:00 Rafael Chacón <raf...@gm...>: > Hi, > > I enclose a uptdate to new addTextWrap. > > Changes: > 1. Sets encoding 'UTF-8' in all multi-byte functions. > 2. Adds the replace of '\n' text with a line feed character. This is to > fix the possible introduction of a '\n' text instead of a line feed > character. > 3. Adds the delete of '\r' text. This is to fix the possible introduction > of a '\r' text instead of a carriage return character. > 4. Replaces hard hypen with soft hyphen as possible break position. > 5. Privileges the use of mb_substr() instead of $text{$i} (deprecated? not > multi-byte safe?) and $text[$i] (not multi-byte safe?). > 6. Uses "greater than or equal to" comparison instead of "greater than" to > cover the possibility of exact matches to exit for() loop. > 7. Uses "less than or equal to" comparison instead of "less than" to cover > the possibility of exact matches to exit for() loop. > 8. Excludes the break character from the returned string. > 9. Improves documentation and formatting. > > Best regards, Rafael. > > 2015-02-13 9:59 GMT-06:00 Andrew Galuski <aga...@re...>: > > Actually. >> >> My issue seems to be with special characters. Any help is appreciated. >> I can’t seem to figure out why. >> >> This Doesn’t Wrap on the invoice >> >> TEST trademark ABC P-1700 CL 2612MPC >> >> >> This does wrap (Much Shorter but Trademark sign inside of it). I don’t >> want it to wrap. >> >> TEST ® ABC P-1700 CL 2612MPC >> >> >> >> I can make 1 modification that fixes it but I am unsure why it is needed >> and again not sure of what else it will affect. >> >> Original code line 293 ‘while($i<$nb)’ >> >> This code fixes it ‘while($i<=$nb)’ >> >> >> >> where >> >> ‘$nb=mb_strlen($s);’ >> >> >> >> Ideas? >> >> >> >> >> >> Best Regards, >> >> Andrew Galuski >> >> ResMart LLC. >> >> 817.615.2038 (Office) >> >> 817.821.0544 (Cell) >> >> www.resmart.com >> >> [image: resmart_logo] >> >> >> >> *From:* Andrew Galuski [mailto:aga...@re...] >> *Sent:* Friday, February 13, 2015 9:48 AM >> >> *To:* webERP Developers >> *Subject:* Re: [WebERP-developers] PDF generator in webERP. >> >> >> >> The missing spaces would make me have to alter too many forms I believe >> but it is nice work. >> >> I think locally I can fix my issue with another small change. >> >> >> >> Best Regards, >> >> Andrew Galuski >> >> ResMart LLC. >> >> 817.615.2038 (Office) >> >> 817.821.0544 (Cell) >> >> www.resmart.com >> >> [image: resmart_logo] >> >> >> >> *From:* Rafael Chacón [mailto:raf...@gm... >> <raf...@gm...>] >> *Sent:* Wednesday, February 11, 2015 4:45 PM >> *To:* webERP Developers >> *Subject:* Re: [WebERP-developers] PDF generator in webERP. >> >> >> >> Hi Andrew, >> >> I enclose my new AddTextWrap. Inside ~/includes/class.pdf.php, replace >> AddTextWrap lines (80-169) with lines 3-66 of the included file. >> >> Comments: >> * I'm testing with last version of Nicola Asuni's TCPDF. >> * It is possible to replace line 56 ("$textwidth += >> $this->GetStringWidth($c);") with two lines. Those two lines makes the >> function a little faster in some cases ($text width near the cell width), >> but slower in other cases ($text width far from the cell width). >> >> Best regards, Rafael. >> >> >> >> 2015-02-11 16:19 GMT-06:00 Andrew Galuski <aga...@re...>: >> >> I am trouble shooting the same problem today where it wraps text smaller >> than the width. The added $s = trim($s).' ';" causes an issue for me. >> Or you can change a do while loop from < to <= $nb and it appears to fix >> same issue. My worry was testing all existing forms. If you can send me >> your update I will test it in my environment for all my forms. >> >> >> >> Sent from my BlackBerry 10 smartphone on the Verizon Wireless 4G LTE >> network. >> >> *From: *Rafael Chacón >> >> *Sent: *Wednesday, February 11, 2015 3:26 PM >> >> *To: *webERP Developers >> >> *Reply To: *webERP Developers >> >> *Subject: *Re: [WebERP-developers] PDF generator in webERP. >> >> >> >> Hi Vitaly, >> >> Thank you for writing. >> >> About >> "$lines=explode("\r\n",htmlspecialchars_decode($myrow2['narrative']));": >> This line returns an array of strings, each of which is a substring of >> $myrow2['narrative'] formed by splitting it on boundaries formed by the >> characters Carriage_Return ("\r") and Line_Feed ("\n"). It only works for >> msWindows (Unix-like and Mac OS-10 use Line_Feed; Mac OS up to version 9 >> uses Carriage_Return). >> >> The problem in PrintCustTransPortrait.php (and other reports) is caused >> by two bugs in AddTextWarp(): >> >> 1. Line 108: "$s = trim($s).' ';" (extra blank character -> the extra >> white line). >> 2. Lines from 106 to 164: (the logic of the code -> splitting in the last >> white_space of a segment smaller that the cell width). >> >> My purpose in asking if someone "has problem with this function (last >> line line-feeded before the end) ?" is know who else experiences that >> problem. >> >> I have a new AddTextWrap that fixes both bugs. It is faster and produces >> PDF files with a slightly smaller size, but --obviously-- it not produce >> the extra blank line in segments smaller than cell width. Many users like >> this (no extra blank line) but there are some users who ask me to re-do >> this extra blank line. >> >> I would like other people tests this new AddTextWrap. Although this extra >> blank line is a bug, I am not comfortable with the idea of a potential >> change in actual reports. >> >> Best regards, Rafael. >> >> >> >> 2015-02-11 8:25 GMT-06:00 Vitaly Shevkunov <vsh...@so...>: >> >> Rafael, >> >> The addTextWrap() does not split the line like that. It is done by this >> function >> $lines=explode("\r\n",htmlspecialchars_decode($myrow2['narrative'])); >> >> in PrintCustTransPortrait.php >> >> >> Vitaly >> >> >> >> On 2/10/2015 9:38 PM, Rafael Chacón wrote: >> >> HI Phil, >> >> Thank you for your answer. >> >> Topic 1: From R&OS -> FPDF -> TCPDF. For future pdf development, I think >> it will be better to directly use TCPDF: (a) Y-coordinate= instead of >> calculating as from page-bottom to cell-bottom and the script class.pdf.php >> translates to page-top to cell-top to use tcpdf.php, we can directly use >> page-top to cell-top and TCPDF; (b) TCPDF has interesting functions >> (writeHTML, writeHTMLCell, etc.) to write code html (a screen report) into >> a pdf. >> >> Topic 2: tcpdf 6.2.6 has new fonts and others.They may be helpful to >> give more options to reports. >> >> Topic 3: With PrintCustTransPortrait.php (and other reports) I have >> unexpected breaks (see enclose) and prints lines with whitespace. The >> problems are inside AddTextWarp(). >> >> Regards, Rafael. >> >> >> >> 2015-02-09 22:34 GMT-06:00 Phil Daintree <ph...@lo...>: >> >> Yes originally used R & OS pdf library. >> Moved to Oliver Plathey FPDF http://www.fpdf.org/ >> The class.pdf.php was created to allow the transition to FPDF >> ... then to TCPDF which was a development of FPDF which allowed utf-8 >> pdfs - using CID fonts rather than embedding a large monster font file into >> each pdf - so a small 10k report becomes 2 Meg. This was not considered >> acceptable. >> I update tcpdf from time to time. >> >> Not sure about 3. >> >> Phil >> >> >> >> Phil Daintree >> >> Logic Works Ltd - +64 (0)275 567890 >> >> http://www.logicworks.co.nz >> >> On 10/02/15 13:37, Rafael Chacón wrote: >> >> Hi, >> >> Some questions: >> >> 1. webERP begun using PHP Pdf creation - R&OS ( >> http://sourceforge.net/projects/pdf-php/). Then, webERP moved to TCPDF ( >> http://www.tcpdf.org/). Javier de Lorenzo-Cáceres wrote >> ~/includes/class.pdf.php to use TCPDF with "PHP_Pdf_creation_-_R&OS syntax" >> (old code). Is it right? >> >> 2. Someone has updated the ~/includes/tcpdf folder with TCPDF version >> 6.2.6 ? >> >> 3. Someone has replaced the function AddTextWarp() or has problem with >> this function (last line line-feeded before the end) ? >> >> Best regards, Rafael. >> >> >> >> ------------------------------------------------------------------------------ >> >> Dive into the World of Parallel Programming. The Go Parallel Website, >> >> sponsored by Intel and developed in partnership with Slashdot Media, is your >> >> hub for all things parallel software development, from weekly thought >> >> leadership blogs to news, videos, case studies, tutorials and more. Take a >> >> look and join the conversation now. http://goparallel.sourceforge.net/ >> >> >> >> _______________________________________________ >> >> Web-erp-developers mailing list >> >> Web...@li... >> >> https://lists.sourceforge.net/lists/listinfo/web-erp-developers >> >> >> >> >> >> ------------------------------------------------------------------------------ >> Dive into the World of Parallel Programming. The Go Parallel Website, >> sponsored by Intel and developed in partnership with Slashdot Media, is >> your >> hub for all things parallel software development, from weekly thought >> leadership blogs to news, videos, case studies, tutorials and more. Take a >> look and join the conversation now. http://goparallel.sourceforge.net/ >> _______________________________________________ >> Web-erp-developers mailing list >> Web...@li... >> https://lists.sourceforge.net/lists/listinfo/web-erp-developers >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> Dive into the World of Parallel Programming. The Go Parallel Website, >> >> sponsored by Intel and developed in partnership with Slashdot Media, is your >> >> hub for all things parallel software development, from weekly thought >> >> leadership blogs to news, videos, case studies, tutorials and more. Take a >> >> look and join the conversation now. http://goparallel.sourceforge.net/ >> >> >> >> _______________________________________________ >> >> Web-erp-developers mailing list >> >> Web...@li... >> >> https://lists.sourceforge.net/lists/listinfo/web-erp-developers >> >> >> >> No virus found in this message. >> Checked by AVG - www.avg.com >> Version: 2015.0.5646 / Virus Database: 4284/9096 - Release Date: 02/11/15 >> >> >> >> >> >> ------------------------------------------------------------------------------ >> Dive into the World of Parallel Programming. The Go Parallel Website, >> sponsored by Intel and developed in partnership with Slashdot Media, is >> your >> hub for all things parallel software development, from weekly thought >> leadership blogs to news, videos, case studies, tutorials and more. Take a >> look and join the conversation now. http://goparallel.sourceforge.net/ >> _______________________________________________ >> Web-erp-developers mailing list >> Web...@li... >> https://lists.sourceforge.net/lists/listinfo/web-erp-developers >> >> >> >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> Dive into the World of Parallel Programming. The Go Parallel Website, >> sponsored by Intel and developed in partnership with Slashdot Media, is >> your >> hub for all things parallel software development, from weekly thought >> leadership blogs to news, videos, case studies, tutorials and more. Take a >> look and join the conversation now. http://goparallel.sourceforge.net/ >> _______________________________________________ >> Web-erp-developers mailing list >> Web...@li... >> https://lists.sourceforge.net/lists/listinfo/web-erp-developers >> >> >> >> >> ------------------------------------------------------------------------------ >> Dive into the World of Parallel Programming. The Go Parallel Website, >> sponsored by Intel and developed in partnership with Slashdot Media, is >> your >> hub for all things parallel software development, from weekly thought >> leadership blogs to news, videos, case studies, tutorials and more. Take a >> look and join the conversation now. http://goparallel.sourceforge.net/ >> _______________________________________________ >> Web-erp-developers mailing list >> Web...@li... >> https://lists.sourceforge.net/lists/listinfo/web-erp-developers >> >> > |
From: Andrew G. <aga...@re...> - 2015-02-13 19:57:48
|
Thank you. I was hoping to be able to fix my existing version although if I pointed out a small issue with your new version you were able to fix I think that is good too. I will try the new version again however if blank spaces are gone I will not be able to use it, too much places to go add extra lines back in for readability. Best Regards, Andrew Galuski ResMart LLC. 817.615.2038 (Office) 817.821.0544 (Cell) www.resmart.com<http://www.resmart.com> [resmart_logo] From: Rafael Chacón [mailto:raf...@gm...] Sent: Friday, February 13, 2015 1:53 PM To: webERP Developers Subject: Re: [WebERP-developers] PDF generator in webERP. Hi, I enclose a uptdate to new addTextWrap. Changes: 1. Sets encoding 'UTF-8' in all multi-byte functions. 2. Adds the replace of '\n' text with a line feed character. This is to fix the possible introduction of a '\n' text instead of a line feed character. 3. Adds the delete of '\r' text. This is to fix the possible introduction of a '\r' text instead of a carriage return character. 4. Replaces hard hypen with soft hyphen as possible break position. 5. Privileges the use of mb_substr() instead of $text{$i} (deprecated? not multi-byte safe?) and $text[$i] (not multi-byte safe?). 6. Uses "greater than or equal to" comparison instead of "greater than" to cover the possibility of exact matches to exit for() loop. 7. Uses "less than or equal to" comparison instead of "less than" to cover the possibility of exact matches to exit for() loop. 8. Excludes the break character from the returned string. 9. Improves documentation and formatting. Best regards, Rafael. 2015-02-13 9:59 GMT-06:00 Andrew Galuski <aga...@re...<mailto:aga...@re...>>: Actually. My issue seems to be with special characters. Any help is appreciated. I can’t seem to figure out why. This Doesn’t Wrap on the invoice TEST trademark ABC P-1700 CL 2612MPC This does wrap (Much Shorter but Trademark sign inside of it). I don’t want it to wrap. TEST ® ABC P-1700 CL 2612MPC I can make 1 modification that fixes it but I am unsure why it is needed and again not sure of what else it will affect. Original code line 293 ‘while($i<$nb)’ This code fixes it ‘while($i<=$nb)’ where ‘$nb=mb_strlen($s);’ Ideas? Best Regards, Andrew Galuski ResMart LLC. 817.615.2038 (Office) 817.821.0544 (Cell) www.resmart.com<http://www.resmart.com> [resmart_logo] From: Andrew Galuski [mailto:aga...@re...<mailto:aga...@re...>] Sent: Friday, February 13, 2015 9:48 AM To: webERP Developers Subject: Re: [WebERP-developers] PDF generator in webERP. The missing spaces would make me have to alter too many forms I believe but it is nice work. I think locally I can fix my issue with another small change. Best Regards, Andrew Galuski ResMart LLC. 817.615.2038 (Office) 817.821.0544 (Cell) www.resmart.com<http://www.resmart.com> [resmart_logo] From: Rafael Chacón [mailto:raf...@gm...] Sent: Wednesday, February 11, 2015 4:45 PM To: webERP Developers Subject: Re: [WebERP-developers] PDF generator in webERP. Hi Andrew, I enclose my new AddTextWrap. Inside ~/includes/class.pdf.php, replace AddTextWrap lines (80-169) with lines 3-66 of the included file. Comments: * I'm testing with last version of Nicola Asuni's TCPDF. * It is possible to replace line 56 ("$textwidth += $this->GetStringWidth($c);") with two lines. Those two lines makes the function a little faster in some cases ($text width near the cell width), but slower in other cases ($text width far from the cell width). Best regards, Rafael. 2015-02-11 16:19 GMT-06:00 Andrew Galuski <aga...@re...<mailto:aga...@re...>>: I am trouble shooting the same problem today where it wraps text smaller than the width. The added $s = trim($s).' ';" causes an issue for me. Or you can change a do while loop from < to <= $nb and it appears to fix same issue. My worry was testing all existing forms. If you can send me your update I will test it in my environment for all my forms. Sent from my BlackBerry 10 smartphone on the Verizon Wireless 4G LTE network. From: Rafael Chacón Sent: Wednesday, February 11, 2015 3:26 PM To: webERP Developers Reply To: webERP Developers Subject: Re: [WebERP-developers] PDF generator in webERP. Hi Vitaly, Thank you for writing. About "$lines=explode("\r\n",htmlspecialchars_decode($myrow2['narrative']));": This line returns an array of strings, each of which is a substring of $myrow2['narrative'] formed by splitting it on boundaries formed by the characters Carriage_Return ("\r") and Line_Feed ("\n"). It only works for msWindows (Unix-like and Mac OS-10 use Line_Feed; Mac OS up to version 9 uses Carriage_Return). The problem in PrintCustTransPortrait.php (and other reports) is caused by two bugs in AddTextWarp(): 1. Line 108: "$s = trim($s).' ';" (extra blank character -> the extra white line). 2. Lines from 106 to 164: (the logic of the code -> splitting in the last white_space of a segment smaller that the cell width). My purpose in asking if someone "has problem with this function (last line line-feeded before the end) ?" is know who else experiences that problem. I have a new AddTextWrap that fixes both bugs. It is faster and produces PDF files with a slightly smaller size, but --obviously-- it not produce the extra blank line in segments smaller than cell width. Many users like this (no extra blank line) but there are some users who ask me to re-do this extra blank line. I would like other people tests this new AddTextWrap. Although this extra blank line is a bug, I am not comfortable with the idea of a potential change in actual reports. Best regards, Rafael. 2015-02-11 8:25 GMT-06:00 Vitaly Shevkunov <vsh...@so...<mailto:vsh...@so...>>: Rafael, The addTextWrap() does not split the line like that. It is done by this function $lines=explode("\r\n",htmlspecialchars_decode($myrow2['narrative'])); in PrintCustTransPortrait.php Vitaly On 2/10/2015 9:38 PM, Rafael Chacón wrote: HI Phil, Thank you for your answer. Topic 1: From R&OS -> FPDF -> TCPDF. For future pdf development, I think it will be better to directly use TCPDF: (a) Y-coordinate= instead of calculating as from page-bottom to cell-bottom and the script class.pdf.php translates to page-top to cell-top to use tcpdf.php, we can directly use page-top to cell-top and TCPDF; (b) TCPDF has interesting functions (writeHTML, writeHTMLCell, etc.) to write code html (a screen report) into a pdf. Topic 2: tcpdf 6.2.6 has new fonts and others.They may be helpful to give more options to reports. Topic 3: With PrintCustTransPortrait.php (and other reports) I have unexpected breaks (see enclose) and prints lines with whitespace. The problems are inside AddTextWarp(). Regards, Rafael. 2015-02-09 22:34 GMT-06:00 Phil Daintree <ph...@lo...<mailto:ph...@lo...>>: Yes originally used R & OS pdf library. Moved to Oliver Plathey FPDF http://www.fpdf.org/ The class.pdf.php was created to allow the transition to FPDF ... then to TCPDF which was a development of FPDF which allowed utf-8 pdfs - using CID fonts rather than embedding a large monster font file into each pdf - so a small 10k report becomes 2 Meg. This was not considered acceptable. I update tcpdf from time to time. Not sure about 3. Phil Phil Daintree Logic Works Ltd - +64 (0)275 567890 http://www.logicworks.co.nz On 10/02/15 13:37, Rafael Chacón wrote: Hi, Some questions: 1. webERP begun using PHP Pdf creation - R&OS (http://sourceforge.net/projects/pdf-php/). Then, webERP moved to TCPDF (http://www.tcpdf.org/). Javier de Lorenzo-Cáceres wrote ~/includes/class.pdf.php to use TCPDF with "PHP_Pdf_creation_-_R&OS syntax" (old code). Is it right? 2. Someone has updated the ~/includes/tcpdf folder with TCPDF version 6.2.6 ? 3. Someone has replaced the function AddTextWarp() or has problem with this function (last line line-feeded before the end) ? Best regards, Rafael. ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Web-erp-developers mailing list Web...@li...<mailto:Web...@li...> https://lists.sourceforge.net/lists/listinfo/web-erp-developers ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Web-erp-developers mailing list Web...@li...<mailto:Web...@li...> https://lists.sourceforge.net/lists/listinfo/web-erp-developers ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Web-erp-developers mailing list Web...@li...<mailto:Web...@li...> https://lists.sourceforge.net/lists/listinfo/web-erp-developers No virus found in this message. Checked by AVG - www.avg.com<http://www.avg.com> Version: 2015.0.5646 / Virus Database: 4284/9096 - Release Date: 02/11/15 ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Web-erp-developers mailing list Web...@li...<mailto:Web...@li...> https://lists.sourceforge.net/lists/listinfo/web-erp-developers ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Web-erp-developers mailing list Web...@li...<mailto:Web...@li...> https://lists.sourceforge.net/lists/listinfo/web-erp-developers ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Web-erp-developers mailing list Web...@li...<mailto:Web...@li...> https://lists.sourceforge.net/lists/listinfo/web-erp-developers |
From: Rafael C. <raf...@gm...> - 2015-02-13 19:53:37
|
Hi, I enclose a uptdate to new addTextWrap. Changes: 1. Sets encoding 'UTF-8' in all multi-byte functions. 2. Adds the replace of '\n' text with a line feed character. This is to fix the possible introduction of a '\n' text instead of a line feed character. 3. Adds the delete of '\r' text. This is to fix the possible introduction of a '\r' text instead of a carriage return character. 4. Replaces hard hypen with soft hyphen as possible break position. 5. Privileges the use of mb_substr() instead of $text{$i} (deprecated? not multi-byte safe?) and $text[$i] (not multi-byte safe?). 6. Uses "greater than or equal to" comparison instead of "greater than" to cover the possibility of exact matches to exit for() loop. 7. Uses "less than or equal to" comparison instead of "less than" to cover the possibility of exact matches to exit for() loop. 8. Excludes the break character from the returned string. 9. Improves documentation and formatting. Best regards, Rafael. 2015-02-13 9:59 GMT-06:00 Andrew Galuski <aga...@re...>: > Actually. > > My issue seems to be with special characters. Any help is appreciated. I > can’t seem to figure out why. > > This Doesn’t Wrap on the invoice > > TEST trademark ABC P-1700 CL 2612MPC > > > This does wrap (Much Shorter but Trademark sign inside of it). I don’t > want it to wrap. > > TEST ® ABC P-1700 CL 2612MPC > > > > I can make 1 modification that fixes it but I am unsure why it is needed > and again not sure of what else it will affect. > > Original code line 293 ‘while($i<$nb)’ > > This code fixes it ‘while($i<=$nb)’ > > > > where > > ‘$nb=mb_strlen($s);’ > > > > Ideas? > > > > > > Best Regards, > > Andrew Galuski > > ResMart LLC. > > 817.615.2038 (Office) > > 817.821.0544 (Cell) > > www.resmart.com > > [image: resmart_logo] > > > > *From:* Andrew Galuski [mailto:aga...@re...] > *Sent:* Friday, February 13, 2015 9:48 AM > > *To:* webERP Developers > *Subject:* Re: [WebERP-developers] PDF generator in webERP. > > > > The missing spaces would make me have to alter too many forms I believe > but it is nice work. > > I think locally I can fix my issue with another small change. > > > > Best Regards, > > Andrew Galuski > > ResMart LLC. > > 817.615.2038 (Office) > > 817.821.0544 (Cell) > > www.resmart.com > > [image: resmart_logo] > > > > *From:* Rafael Chacón [mailto:raf...@gm... > <raf...@gm...>] > *Sent:* Wednesday, February 11, 2015 4:45 PM > *To:* webERP Developers > *Subject:* Re: [WebERP-developers] PDF generator in webERP. > > > > Hi Andrew, > > I enclose my new AddTextWrap. Inside ~/includes/class.pdf.php, replace > AddTextWrap lines (80-169) with lines 3-66 of the included file. > > Comments: > * I'm testing with last version of Nicola Asuni's TCPDF. > * It is possible to replace line 56 ("$textwidth += > $this->GetStringWidth($c);") with two lines. Those two lines makes the > function a little faster in some cases ($text width near the cell width), > but slower in other cases ($text width far from the cell width). > > Best regards, Rafael. > > > > 2015-02-11 16:19 GMT-06:00 Andrew Galuski <aga...@re...>: > > I am trouble shooting the same problem today where it wraps text smaller > than the width. The added $s = trim($s).' ';" causes an issue for me. Or > you can change a do while loop from < to <= $nb and it appears to fix same > issue. My worry was testing all existing forms. If you can send me your > update I will test it in my environment for all my forms. > > > > Sent from my BlackBerry 10 smartphone on the Verizon Wireless 4G LTE > network. > > *From: *Rafael Chacón > > *Sent: *Wednesday, February 11, 2015 3:26 PM > > *To: *webERP Developers > > *Reply To: *webERP Developers > > *Subject: *Re: [WebERP-developers] PDF generator in webERP. > > > > Hi Vitaly, > > Thank you for writing. > > About > "$lines=explode("\r\n",htmlspecialchars_decode($myrow2['narrative']));": > This line returns an array of strings, each of which is a substring of > $myrow2['narrative'] formed by splitting it on boundaries formed by the > characters Carriage_Return ("\r") and Line_Feed ("\n"). It only works for > msWindows (Unix-like and Mac OS-10 use Line_Feed; Mac OS up to version 9 > uses Carriage_Return). > > The problem in PrintCustTransPortrait.php (and other reports) is caused by > two bugs in AddTextWarp(): > > 1. Line 108: "$s = trim($s).' ';" (extra blank character -> the extra > white line). > 2. Lines from 106 to 164: (the logic of the code -> splitting in the last > white_space of a segment smaller that the cell width). > > My purpose in asking if someone "has problem with this function (last line > line-feeded before the end) ?" is know who else experiences that problem. > > I have a new AddTextWrap that fixes both bugs. It is faster and produces > PDF files with a slightly smaller size, but --obviously-- it not produce > the extra blank line in segments smaller than cell width. Many users like > this (no extra blank line) but there are some users who ask me to re-do > this extra blank line. > > I would like other people tests this new AddTextWrap. Although this extra > blank line is a bug, I am not comfortable with the idea of a potential > change in actual reports. > > Best regards, Rafael. > > > > 2015-02-11 8:25 GMT-06:00 Vitaly Shevkunov <vsh...@so...>: > > Rafael, > > The addTextWrap() does not split the line like that. It is done by this > function > $lines=explode("\r\n",htmlspecialchars_decode($myrow2['narrative'])); > > in PrintCustTransPortrait.php > > > Vitaly > > > > On 2/10/2015 9:38 PM, Rafael Chacón wrote: > > HI Phil, > > Thank you for your answer. > > Topic 1: From R&OS -> FPDF -> TCPDF. For future pdf development, I think > it will be better to directly use TCPDF: (a) Y-coordinate= instead of > calculating as from page-bottom to cell-bottom and the script class.pdf.php > translates to page-top to cell-top to use tcpdf.php, we can directly use > page-top to cell-top and TCPDF; (b) TCPDF has interesting functions > (writeHTML, writeHTMLCell, etc.) to write code html (a screen report) into > a pdf. > > Topic 2: tcpdf 6.2.6 has new fonts and others.They may be helpful to give > more options to reports. > > Topic 3: With PrintCustTransPortrait.php (and other reports) I have > unexpected breaks (see enclose) and prints lines with whitespace. The > problems are inside AddTextWarp(). > > Regards, Rafael. > > > > 2015-02-09 22:34 GMT-06:00 Phil Daintree <ph...@lo...>: > > Yes originally used R & OS pdf library. > Moved to Oliver Plathey FPDF http://www.fpdf.org/ > The class.pdf.php was created to allow the transition to FPDF > ... then to TCPDF which was a development of FPDF which allowed utf-8 > pdfs - using CID fonts rather than embedding a large monster font file into > each pdf - so a small 10k report becomes 2 Meg. This was not considered > acceptable. > I update tcpdf from time to time. > > Not sure about 3. > > Phil > > > > Phil Daintree > > Logic Works Ltd - +64 (0)275 567890 > > http://www.logicworks.co.nz > > On 10/02/15 13:37, Rafael Chacón wrote: > > Hi, > > Some questions: > > 1. webERP begun using PHP Pdf creation - R&OS ( > http://sourceforge.net/projects/pdf-php/). Then, webERP moved to TCPDF ( > http://www.tcpdf.org/). Javier de Lorenzo-Cáceres wrote > ~/includes/class.pdf.php to use TCPDF with "PHP_Pdf_creation_-_R&OS syntax" > (old code). Is it right? > > 2. Someone has updated the ~/includes/tcpdf folder with TCPDF version > 6.2.6 ? > > 3. Someone has replaced the function AddTextWarp() or has problem with > this function (last line line-feeded before the end) ? > > Best regards, Rafael. > > > > ------------------------------------------------------------------------------ > > Dive into the World of Parallel Programming. The Go Parallel Website, > > sponsored by Intel and developed in partnership with Slashdot Media, is your > > hub for all things parallel software development, from weekly thought > > leadership blogs to news, videos, case studies, tutorials and more. Take a > > look and join the conversation now. http://goparallel.sourceforge.net/ > > > > _______________________________________________ > > Web-erp-developers mailing list > > Web...@li... > > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > > > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming. The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is > your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > > > > > ------------------------------------------------------------------------------ > > Dive into the World of Parallel Programming. The Go Parallel Website, > > sponsored by Intel and developed in partnership with Slashdot Media, is your > > hub for all things parallel software development, from weekly thought > > leadership blogs to news, videos, case studies, tutorials and more. Take a > > look and join the conversation now. http://goparallel.sourceforge.net/ > > > > _______________________________________________ > > Web-erp-developers mailing list > > Web...@li... > > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > > > No virus found in this message. > Checked by AVG - www.avg.com > Version: 2015.0.5646 / Virus Database: 4284/9096 - Release Date: 02/11/15 > > > > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming. The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is > your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > > > > > > > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming. The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is > your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming. The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is > your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > |
From: Andrew G. <aga...@re...> - 2015-02-13 15:59:35
|
Actually. My issue seems to be with special characters. Any help is appreciated. I can’t seem to figure out why. This Doesn’t Wrap on the invoice TEST trademark ABC P-1700 CL 2612MPC This does wrap (Much Shorter but Trademark sign inside of it). I don’t want it to wrap. TEST ® ABC P-1700 CL 2612MPC I can make 1 modification that fixes it but I am unsure why it is needed and again not sure of what else it will affect. Original code line 293 ‘while($i<$nb)’ This code fixes it ‘while($i<=$nb)’ where ‘$nb=mb_strlen($s);’ Ideas? Best Regards, Andrew Galuski ResMart LLC. 817.615.2038 (Office) 817.821.0544 (Cell) www.resmart.com<http://www.resmart.com> [resmart_logo] From: Andrew Galuski [mailto:aga...@re...] Sent: Friday, February 13, 2015 9:48 AM To: webERP Developers Subject: Re: [WebERP-developers] PDF generator in webERP. The missing spaces would make me have to alter too many forms I believe but it is nice work. I think locally I can fix my issue with another small change. Best Regards, Andrew Galuski ResMart LLC. 817.615.2038 (Office) 817.821.0544 (Cell) www.resmart.com<http://www.resmart.com> [resmart_logo] From: Rafael Chacón [mailto:raf...@gm...] Sent: Wednesday, February 11, 2015 4:45 PM To: webERP Developers Subject: Re: [WebERP-developers] PDF generator in webERP. Hi Andrew, I enclose my new AddTextWrap. Inside ~/includes/class.pdf.php, replace AddTextWrap lines (80-169) with lines 3-66 of the included file. Comments: * I'm testing with last version of Nicola Asuni's TCPDF. * It is possible to replace line 56 ("$textwidth += $this->GetStringWidth($c);") with two lines. Those two lines makes the function a little faster in some cases ($text width near the cell width), but slower in other cases ($text width far from the cell width). Best regards, Rafael. 2015-02-11 16:19 GMT-06:00 Andrew Galuski <aga...@re...<mailto:aga...@re...>>: I am trouble shooting the same problem today where it wraps text smaller than the width. The added $s = trim($s).' ';" causes an issue for me. Or you can change a do while loop from < to <= $nb and it appears to fix same issue. My worry was testing all existing forms. If you can send me your update I will test it in my environment for all my forms. Sent from my BlackBerry 10 smartphone on the Verizon Wireless 4G LTE network. From: Rafael Chacón Sent: Wednesday, February 11, 2015 3:26 PM To: webERP Developers Reply To: webERP Developers Subject: Re: [WebERP-developers] PDF generator in webERP. Hi Vitaly, Thank you for writing. About "$lines=explode("\r\n",htmlspecialchars_decode($myrow2['narrative']));": This line returns an array of strings, each of which is a substring of $myrow2['narrative'] formed by splitting it on boundaries formed by the characters Carriage_Return ("\r") and Line_Feed ("\n"). It only works for msWindows (Unix-like and Mac OS-10 use Line_Feed; Mac OS up to version 9 uses Carriage_Return). The problem in PrintCustTransPortrait.php (and other reports) is caused by two bugs in AddTextWarp(): 1. Line 108: "$s = trim($s).' ';" (extra blank character -> the extra white line). 2. Lines from 106 to 164: (the logic of the code -> splitting in the last white_space of a segment smaller that the cell width). My purpose in asking if someone "has problem with this function (last line line-feeded before the end) ?" is know who else experiences that problem. I have a new AddTextWrap that fixes both bugs. It is faster and produces PDF files with a slightly smaller size, but --obviously-- it not produce the extra blank line in segments smaller than cell width. Many users like this (no extra blank line) but there are some users who ask me to re-do this extra blank line. I would like other people tests this new AddTextWrap. Although this extra blank line is a bug, I am not comfortable with the idea of a potential change in actual reports. Best regards, Rafael. 2015-02-11 8:25 GMT-06:00 Vitaly Shevkunov <vsh...@so...<mailto:vsh...@so...>>: Rafael, The addTextWrap() does not split the line like that. It is done by this function $lines=explode("\r\n",htmlspecialchars_decode($myrow2['narrative'])); in PrintCustTransPortrait.php Vitaly On 2/10/2015 9:38 PM, Rafael Chacón wrote: HI Phil, Thank you for your answer. Topic 1: From R&OS -> FPDF -> TCPDF. For future pdf development, I think it will be better to directly use TCPDF: (a) Y-coordinate= instead of calculating as from page-bottom to cell-bottom and the script class.pdf.php translates to page-top to cell-top to use tcpdf.php, we can directly use page-top to cell-top and TCPDF; (b) TCPDF has interesting functions (writeHTML, writeHTMLCell, etc.) to write code html (a screen report) into a pdf. Topic 2: tcpdf 6.2.6 has new fonts and others.They may be helpful to give more options to reports. Topic 3: With PrintCustTransPortrait.php (and other reports) I have unexpected breaks (see enclose) and prints lines with whitespace. The problems are inside AddTextWarp(). Regards, Rafael. 2015-02-09 22:34 GMT-06:00 Phil Daintree <ph...@lo...<mailto:ph...@lo...>>: Yes originally used R & OS pdf library. Moved to Oliver Plathey FPDF http://www.fpdf.org/ The class.pdf.php was created to allow the transition to FPDF ... then to TCPDF which was a development of FPDF which allowed utf-8 pdfs - using CID fonts rather than embedding a large monster font file into each pdf - so a small 10k report becomes 2 Meg. This was not considered acceptable. I update tcpdf from time to time. Not sure about 3. Phil Phil Daintree Logic Works Ltd - +64 (0)275 567890 http://www.logicworks.co.nz On 10/02/15 13:37, Rafael Chacón wrote: Hi, Some questions: 1. webERP begun using PHP Pdf creation - R&OS (http://sourceforge.net/projects/pdf-php/). Then, webERP moved to TCPDF (http://www.tcpdf.org/). Javier de Lorenzo-Cáceres wrote ~/includes/class.pdf.php to use TCPDF with "PHP_Pdf_creation_-_R&OS syntax" (old code). Is it right? 2. Someone has updated the ~/includes/tcpdf folder with TCPDF version 6.2.6 ? 3. Someone has replaced the function AddTextWarp() or has problem with this function (last line line-feeded before the end) ? Best regards, Rafael. ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Web-erp-developers mailing list Web...@li...<mailto:Web...@li...> https://lists.sourceforge.net/lists/listinfo/web-erp-developers ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Web-erp-developers mailing list Web...@li...<mailto:Web...@li...> https://lists.sourceforge.net/lists/listinfo/web-erp-developers ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Web-erp-developers mailing list Web...@li...<mailto:Web...@li...> https://lists.sourceforge.net/lists/listinfo/web-erp-developers No virus found in this message. Checked by AVG - www.avg.com<http://www.avg.com> Version: 2015.0.5646 / Virus Database: 4284/9096 - Release Date: 02/11/15 ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Web-erp-developers mailing list Web...@li...<mailto:Web...@li...> https://lists.sourceforge.net/lists/listinfo/web-erp-developers ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Web-erp-developers mailing list Web...@li...<mailto:Web...@li...> https://lists.sourceforge.net/lists/listinfo/web-erp-developers |
From: Andrew G. <aga...@re...> - 2015-02-13 15:47:54
|
The missing spaces would make me have to alter too many forms I believe but it is nice work. I think locally I can fix my issue with another small change. Best Regards, Andrew Galuski ResMart LLC. 817.615.2038 (Office) 817.821.0544 (Cell) www.resmart.com<http://www.resmart.com> [resmart_logo] From: Rafael Chacón [mailto:raf...@gm...] Sent: Wednesday, February 11, 2015 4:45 PM To: webERP Developers Subject: Re: [WebERP-developers] PDF generator in webERP. Hi Andrew, I enclose my new AddTextWrap. Inside ~/includes/class.pdf.php, replace AddTextWrap lines (80-169) with lines 3-66 of the included file. Comments: * I'm testing with last version of Nicola Asuni's TCPDF. * It is possible to replace line 56 ("$textwidth += $this->GetStringWidth($c);") with two lines. Those two lines makes the function a little faster in some cases ($text width near the cell width), but slower in other cases ($text width far from the cell width). Best regards, Rafael. 2015-02-11 16:19 GMT-06:00 Andrew Galuski <aga...@re...<mailto:aga...@re...>>: I am trouble shooting the same problem today where it wraps text smaller than the width. The added $s = trim($s).' ';" causes an issue for me. Or you can change a do while loop from < to <= $nb and it appears to fix same issue. My worry was testing all existing forms. If you can send me your update I will test it in my environment for all my forms. Sent from my BlackBerry 10 smartphone on the Verizon Wireless 4G LTE network. From: Rafael Chacón Sent: Wednesday, February 11, 2015 3:26 PM To: webERP Developers Reply To: webERP Developers Subject: Re: [WebERP-developers] PDF generator in webERP. Hi Vitaly, Thank you for writing. About "$lines=explode("\r\n",htmlspecialchars_decode($myrow2['narrative']));": This line returns an array of strings, each of which is a substring of $myrow2['narrative'] formed by splitting it on boundaries formed by the characters Carriage_Return ("\r") and Line_Feed ("\n"). It only works for msWindows (Unix-like and Mac OS-10 use Line_Feed; Mac OS up to version 9 uses Carriage_Return). The problem in PrintCustTransPortrait.php (and other reports) is caused by two bugs in AddTextWarp(): 1. Line 108: "$s = trim($s).' ';" (extra blank character -> the extra white line). 2. Lines from 106 to 164: (the logic of the code -> splitting in the last white_space of a segment smaller that the cell width). My purpose in asking if someone "has problem with this function (last line line-feeded before the end) ?" is know who else experiences that problem. I have a new AddTextWrap that fixes both bugs. It is faster and produces PDF files with a slightly smaller size, but --obviously-- it not produce the extra blank line in segments smaller than cell width. Many users like this (no extra blank line) but there are some users who ask me to re-do this extra blank line. I would like other people tests this new AddTextWrap. Although this extra blank line is a bug, I am not comfortable with the idea of a potential change in actual reports. Best regards, Rafael. 2015-02-11 8:25 GMT-06:00 Vitaly Shevkunov <vsh...@so...<mailto:vsh...@so...>>: Rafael, The addTextWrap() does not split the line like that. It is done by this function $lines=explode("\r\n",htmlspecialchars_decode($myrow2['narrative'])); in PrintCustTransPortrait.php Vitaly On 2/10/2015 9:38 PM, Rafael Chacón wrote: HI Phil, Thank you for your answer. Topic 1: From R&OS -> FPDF -> TCPDF. For future pdf development, I think it will be better to directly use TCPDF: (a) Y-coordinate= instead of calculating as from page-bottom to cell-bottom and the script class.pdf.php translates to page-top to cell-top to use tcpdf.php, we can directly use page-top to cell-top and TCPDF; (b) TCPDF has interesting functions (writeHTML, writeHTMLCell, etc.) to write code html (a screen report) into a pdf. Topic 2: tcpdf 6.2.6 has new fonts and others.They may be helpful to give more options to reports. Topic 3: With PrintCustTransPortrait.php (and other reports) I have unexpected breaks (see enclose) and prints lines with whitespace. The problems are inside AddTextWarp(). Regards, Rafael. 2015-02-09 22:34 GMT-06:00 Phil Daintree <ph...@lo...<mailto:ph...@lo...>>: Yes originally used R & OS pdf library. Moved to Oliver Plathey FPDF http://www.fpdf.org/ The class.pdf.php was created to allow the transition to FPDF ... then to TCPDF which was a development of FPDF which allowed utf-8 pdfs - using CID fonts rather than embedding a large monster font file into each pdf - so a small 10k report becomes 2 Meg. This was not considered acceptable. I update tcpdf from time to time. Not sure about 3. Phil Phil Daintree Logic Works Ltd - +64 (0)275 567890 http://www.logicworks.co.nz On 10/02/15 13:37, Rafael Chacón wrote: Hi, Some questions: 1. webERP begun using PHP Pdf creation - R&OS (http://sourceforge.net/projects/pdf-php/). Then, webERP moved to TCPDF (http://www.tcpdf.org/). Javier de Lorenzo-Cáceres wrote ~/includes/class.pdf.php to use TCPDF with "PHP_Pdf_creation_-_R&OS syntax" (old code). Is it right? 2. Someone has updated the ~/includes/tcpdf folder with TCPDF version 6.2.6 ? 3. Someone has replaced the function AddTextWarp() or has problem with this function (last line line-feeded before the end) ? Best regards, Rafael. ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Web-erp-developers mailing list Web...@li...<mailto:Web...@li...> https://lists.sourceforge.net/lists/listinfo/web-erp-developers ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Web-erp-developers mailing list Web...@li...<mailto:Web...@li...> https://lists.sourceforge.net/lists/listinfo/web-erp-developers ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Web-erp-developers mailing list Web...@li...<mailto:Web...@li...> https://lists.sourceforge.net/lists/listinfo/web-erp-developers No virus found in this message. Checked by AVG - www.avg.com<http://www.avg.com> Version: 2015.0.5646 / Virus Database: 4284/9096 - Release Date: 02/11/15 ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Web-erp-developers mailing list Web...@li...<mailto:Web...@li...> https://lists.sourceforge.net/lists/listinfo/web-erp-developers ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Web-erp-developers mailing list Web...@li...<mailto:Web...@li...> https://lists.sourceforge.net/lists/listinfo/web-erp-developers |