When i creat a reciept ticket the information that must be in the middel of the page.
Is on top of the page.
How can i get the information on the right place in the pdf what must i adjust.
I update to the latest tcpdf_4_5_015 version.
pdf alignment
-
- Phoca Newbie
- Posts: 8
- Joined: 21 Feb 2009, 01:48
pdf alignment
Last edited by PaulusB on 25 Feb 2009, 22:49, edited 1 time in total.
- Jan
- Phoca Hero
- Posts: 48536
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: pdf alignment
Hi, maybe it is caused by new version of tcpdf, maybe you should use the old one which is included in Joomla! because maybe you have overwritten some Joomla! settings for PDF...
viewtopic.php?f=27&t=3240&p=16140#p16140
instaed of copying new version of tcpdf you should only paste the freesans files into language/en-GB/fonts folder...
Jan
viewtopic.php?f=27&t=3240&p=16140#p16140
instaed of copying new version of tcpdf you should only paste the freesans files into language/en-GB/fonts folder...
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 8
- Joined: 21 Feb 2009, 01:48
Re: pdf alignment
When i do that is get this error.
Code: Select all
Warning: include(D:/Inetpub/wwwroot/_OPENSOURCE/tcpdf/fonts/freesans.php) [function.include]: failed to open stream: No such file or directory in /home/dollweek/public_html/libraries/tcpdf/tcpdf.php on line 1909
Warning: include(D:/Inetpub/wwwroot/_OPENSOURCE/tcpdf/fonts/freesans.php) [function.include]: failed to open stream: No such file or directory in /home/dollweek/public_html/libraries/tcpdf/tcpdf.php on line 1909
Warning: include() [function.include]: Failed opening 'D:/Inetpub/wwwroot/_OPENSOURCE/tcpdf/fonts/freesans.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/dollweek/public_html/libraries/tcpdf/tcpdf.php on line 1909
TCPDF error: Could not include font definition file
-
- Phoca Newbie
- Posts: 8
- Joined: 21 Feb 2009, 01:48
Re: pdf alignment
Ik have placed the fonts in the folders /public_html/language/en-GB that dont work after that in the folder /public_html/language/nl-NL that dont work after that in the folder /public_html/language/pdf_fonts i uploaded the content from the fonts folder. In to pdf_fonts folder and by that the freesans files where replace but stil keep getting the same error.
-
- Phoca Newbie
- Posts: 8
- Joined: 21 Feb 2009, 01:48
Re: pdf alignment
I have edit the tcpdf_config and set the url to the right place but know the text is in the right position. But know the are some text lines put together see img. I have also used the fonts from the latest version.
-
- Phoca Newbie
- Posts: 8
- Joined: 21 Feb 2009, 01:48
Re: pdf alignment
Oke the product numer is to long how can i remove the product number. From from the pdf generator.
-
- Phoca Member
- Posts: 26
- Joined: 17 Oct 2008, 02:43
- Location: Netherlands
Re: pdf alignment
Paulus, je moet die regel opzoeken in de file en deze uitzetten middels //
Het is een hele rare opbouw. Deze site hielp mij veel:
http://www.fpdf.org/
Dan snap je een beetje hoe ze die opbouw maken. Ik heb heel veel gestript in de originele factuur en verplaatst.
Ik gebruik bedrukt papier en heb niets aan lijnen en logo's. Sux6.
Micha
Het is een hele rare opbouw. Deze site hielp mij veel:
http://www.fpdf.org/
Dan snap je een beetje hoe ze die opbouw maken. Ik heb heel veel gestript in de originele factuur en verplaatst.
Ik gebruik bedrukt papier en heb niets aan lijnen en logo's. Sux6.
Micha
-
- Phoca Newbie
- Posts: 8
- Joined: 21 Feb 2009, 01:48
Re: pdf alignment
Ik had het inmiddels gevonden.
Thanks voor je tip.
Thanks voor je tip.
- Jan
- Phoca Hero
- Posts: 48536
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: pdf alignment
Hi, there is no such option, you can add the pagination to footer but you cannot select in which pages it will be displayed. For such option you need to edit the behaviour in tcpdf class so you will add some if conditions to display or not display pagination on selected pages 

If you find Phoca extensions useful, please support the project