Page 1 of 1

pdf alignment

Posted: 21 Feb 2009, 13:49
by PaulusB
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.

Re: pdf alignment

Posted: 24 Feb 2009, 20:05
by Jan
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

Re: pdf alignment

Posted: 25 Feb 2009, 21:27
by PaulusB
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

Re: pdf alignment

Posted: 25 Feb 2009, 21:42
by PaulusB
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.

Re: pdf alignment

Posted: 25 Feb 2009, 21:57
by PaulusB
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.

Re: pdf alignment

Posted: 25 Feb 2009, 22:49
by PaulusB
Oke the product numer is to long how can i remove the product number. From from the pdf generator.

Re: pdf alignment

Posted: 02 Mar 2009, 20:37
by Micha
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

Re: pdf alignment

Posted: 02 Mar 2009, 23:16
by PaulusB
Ik had het inmiddels gevonden.

Thanks voor je tip.

Re: pdf alignment

Posted: 18 Nov 2009, 16:04
by Jan
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 :idea: