Next Webinar: Maximizing Magento - Get the Most out of Promotions. Register Today!

Magento

Open Source eCommerce Evolved

Magento Forum

   
modify PDF documents
 
graes0
Jr. Member
 
Total Posts:  14
Joined:  2008-02-22
 

Hi all,

I’m a real dummy and I just would lik to add at the bottem of the pdf invoice some hard coded information such as my vat number, bank account information etc. , just Belgian some legal requirements. I know you have to modify it with zend options but as I said I’m a real dummy regarding this.
Would somebody please be so kind to just provide me with the code (where I can change /add the hardcoded information) I have to add to the invoice.php. I would like this info displayed on every page.

Secondly can somebody also tell me how I can make the logo image lager an having a bigger header.

Thanks in advance.

Geert

 
Magento Community Magento Community
Magento Community
Magento Community
 
mrmes20x
Jr. Member
 
Total Posts:  5
Joined:  2008-05-09
 

I would like to know this too…

 
Magento Community Magento Community
Magento Community
Magento Community
 
dan_w
Sr. Member
 
Total Posts:  229
Joined:  2008-01-04
 

Look under app->code->core->Mage->Sales->Model->Order->Pdf->Invoice.php and app->code->core->Mage->Sales->Model->Order->Pdf->Abstract.php. These files hold the configuration for the invoice pdfs.

 
Magento Community Magento Community
Magento Community
Magento Community
 
cgad
Jr. Member
 
Total Posts:  8
Joined:  2008-03-31
 

.. and to add some good howto: check this zend-site for the lines you have to add.

http://framework.zend.com/manual/en/zend.pdf.html

shouldn’t be too hard. there’s a description on how to add text and stuff. hope you get along with this..

regards,
chris

 
Magento Community Magento Community
Magento Community
Magento Community
 
medlington
Member
 
Total Posts:  61
Joined:  2008-04-30
 

Hi,

I’m after the same thing; I just need the logo and the address bigger with the address under the logo and a VAT number adding but am quite daunted by this piece of code.

I can’t quite get my head around which file is creating the pdf and whereabouts I alter it. If someone could instruct me on which lines to add where I would be very grateful.

I think I need to add something like this:

$pdfPage->drawText('VAT NO 929539381'72720);

but have no idea where?

 Signature 

the worlds most portable football goals - 3d animation sheffield - Product design and prototype development - Kenya tourist information

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
Sales: Call 877.832.5289 (North America) 310.295.4144 (International)
© Copyright 2008 Varien. Magento is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
39726 users|383 users currently online|85595 forum posts