| Previous topic :: Next topic |
| Author |
Message |
Balduin
Joined: 18 May 2005
Posts: 1724
Location: Berlin
|
| Posted: Mon May 26, 2008 11:20 am Post subject: different PDF generator |
|
|
The PDF generator which comes with the vtiger release did not fit to our requirements.
At http://forge.vtiger.com/frs/?group_id=165 you may find a different PDF generator for quotes, orders and invoices.
What is different:
- full utf8 support due to the use of the new tcpdf class
- multi language output based on language files
- different layout without frame lines
- different header to fit into European window envelopes
- flexible to include as much text as needed
- includes product description as well as product comments
- includes text form description fields of quotes. orders ...
- excludes the header on multiple pages
Please read the readme.txt file for installtion instructions. Attached is a quote example.
You may give it a try and let me know how it works for you. |
|
| Back to top |
|
franza
Joined: 25 Aug 2006
Posts: 13
|
| Posted: Thu May 29, 2008 9:09 am Post subject: different PDF generator |
|
|
Thank Balduin
Can you add one field with account Tax ID and insert it
under 12345 Sample City.
In footer add one line for capital of company and other. |
|
| Back to top |
|
Balduin
Joined: 18 May 2005
Posts: 1724
Location: Berlin
|
| Posted: Thu May 29, 2008 9:20 am Post subject: different PDF generator |
|
|
| franza, feel free to modify the code to your special needs. To include the account Tax ID below the city you need to modify the header.php. For footer changes you may modify the footer.php. |
|
| Back to top |
|
Balduin
Joined: 18 May 2005
Posts: 1724
Location: Berlin
|
| Posted: Thu May 29, 2008 10:30 am Post subject: Re: different PDF generator |
|
|
I forgot one thing to mention. To get the usage unit output to work you need to modify the EditViewUtils.php and include the usageunit as it is stated in the patch attached.
In addition, if you use another language than English, add the following line in each CreatePDF.php below the statement:
//added by crm-now
$usageunit[$i] = $associated_products[$i]['usageunit'.$i];
add this line:
//if the translated string is available then the translated string other wise original string will be returned
$usageunit[$i] = getTranslatedString($usageunit[$i], 'Products'); |
|
| Back to top |
|
carloz
Joined: 11 Sep 2007
Posts: 437
Location: Brescia, Italy
|
| Posted: Thu May 29, 2008 10:53 am Post subject: Re: different PDF generator |
|
|
hi balduin,
a very useful and well written piece of code :-)
i'm testing and customizing it - hope to give some feedback / contributions soon
carloz |
|
| Back to top |
|
slipperyman
Joined: 14 Nov 2006
Posts: 78
|
| Posted: Thu May 29, 2008 12:37 pm Post subject: Re: different PDF generator |
|
|
| Valid for 5.03? |
|
| Back to top |
|
Balduin
Joined: 18 May 2005
Posts: 1724
Location: Berlin
|
| Posted: Thu May 29, 2008 1:13 pm Post subject: Re: different PDF generator |
|
|
| this has been tested with v5.0.4 only, but I think with a few modifications it will work with the old 5.0.3 too. |
|
| Back to top |
|
slipperyman
Joined: 14 Nov 2006
Posts: 78
|
| Posted: Thu May 29, 2008 7:36 pm Post subject: Re: different PDF generator |
|
|
I´m having problems with accented characters like ó.
And I´ve lost item number in quotes.
everithing else seems to be working |
|
| Back to top |
|
edlentz
Joined: 18 Nov 2005
Posts: 509
Location: Midland, Mi.
|
| Posted: Fri May 30, 2008 12:06 am Post subject: Re: different PDF generator |
|
|
Slipperyman
are you using this on 5.03? Any other issues that you found yet?
Thanks |
|
| Back to top |
|
slipperyman
Joined: 14 Nov 2006
Posts: 78
|
| Posted: Fri May 30, 2008 12:09 pm Post subject: Re: different PDF generator |
|
|
| Nop, just migrated to 5.04 to use it. |
|
| Back to top |
|
| |