pdf alignment

Before you ask about IDnR Addon see the VirtueMart - Invoice, Delivery Note and Receipt Addon
PaulusB
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 21 Feb 2009, 01:48

pdf alignment

Post 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.
Last edited by PaulusB on 25 Feb 2009, 22:49, edited 1 time in total.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48536
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: pdf alignment

Post 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
If you find Phoca extensions useful, please support the project
PaulusB
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 21 Feb 2009, 01:48

Re: pdf alignment

Post 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
PaulusB
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 21 Feb 2009, 01:48

Re: pdf alignment

Post 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.
PaulusB
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 21 Feb 2009, 01:48

Re: pdf alignment

Post 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.
PaulusB
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 21 Feb 2009, 01:48

Re: pdf alignment

Post by PaulusB »

Oke the product numer is to long how can i remove the product number. From from the pdf generator.
Micha
Phoca Member
Phoca Member
Posts: 26
Joined: 17 Oct 2008, 02:43
Location: Netherlands

Re: pdf alignment

Post 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
PaulusB
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 21 Feb 2009, 01:48

Re: pdf alignment

Post by PaulusB »

Ik had het inmiddels gevonden.

Thanks voor je tip.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48536
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: pdf alignment

Post 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:
If you find Phoca extensions useful, please support the project
Post Reply