the PDF file has been updated since Oct 2010, please see:
http://forum.opencart.com/viewtopic.php ... 20#p103264
Mo
Zip file is added. Unzip the file.
Upload the external directory to youre (open-cart-1.4-root)/sytstem dir.
Replace system/engine/controller.php
Replace admin/controller/sale/order.php
EDIT order,pdf -> renderPDF() and CHANGE youre parameters lines 89-93
EDIT external/tcpdf/tcpdf/config/tcpdf_config.php and CHANGE youre parameters lines 126-136
Go to administration panel -> sale -> edit order -> print invoice
You will get the invocie as PDF
Mo.
Attachments
all files you need for using PDF invoice with Open Cart v1.4
The Finnish OpenCart Forum
"Real programmers don't document. If it was hard to write, it should be hard to understand."
b"hMiguelito wrote:mondy, have you tried barcode with your mod?
Try this files with barcode (Zip file is added).
EDIT controller.php -> renderPDF() lines 131-151 to set youre barcode type.
For more information see TCPDF example 27 at:
http://www.tecnick.com/public/code/cp_d ... f_examples
Mo
Attachments
All files to set PDF invoice with barcode
The Finnish OpenCart Forum
"Real programmers don't document. If it was hard to write, it should be hard to understand."
Curentlly, only admin can print PDF invoices.
I have this mode also in OpenCart v1.3.2 that send the order by mail as PDF file, and/or save it to the server.
In this way, I'm using also another program, that print automaticly the order from the mail, so I can get the order directly to my printer without openning the opencart site.
Maybe later, I'll set it also to OpenCart v1.4.
Mo
You don't have this font, in youre tcpdf/fonts directory, includedin zip file that I added.
you have to use the font 'dejavusans'.
Change the controller.php about line 141 :
instead of --> 'font' => 'helvetica',
change it to ---> 'font' => 'dejavusans',
it has to work.
Mo
The Finnish OpenCart Forum
"Real programmers don't document. If it was hard to write, it should be hard to understand."
The Finnish OpenCart Forum
"Real programmers don't document. If it was hard to write, it should be hard to understand."
why?
God, give me courage to do what I can,
humility to admit what I can't,
and wisdom to know the difference.
Opencart mods (search suggestions and so on):
http://forum.opencart.com/viewtopic.php?p=71588#p71588" onclick="window.open(this.href);return false;
God, give me courage to do what I can,
humility to admit what I can't,
and wisdom to know the difference.
Opencart mods (search suggestions and so on):
http://forum.opencart.com/viewtopic.php?p=71588#p71588" onclick="window.open(this.href);return false;
God, give me courage to do what I can,
humility to admit what I can't,
and wisdom to know the difference.
Opencart mods (search suggestions and so on):
http://forum.opencart.com/viewtopic.php?p=71588#p71588" onclick="window.open(this.href);return false;
Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /homepages/38/d250681588/htdocs/tojada/store/system/external/tcpdf/tcpdf.php on line 12110
Parse error: syntax error, unexpected $end in /homepages/38/d250681588/htdocs/tojada/store/system/external/tcpdf/tcpdf.php on line 12110
God, give me courage to do what I can,
humility to admit what I can't,
and wisdom to know the difference.
Opencart mods (search suggestions and so on):
http://forum.opencart.com/viewtopic.php?p=71588#p71588" onclick="window.open(this.href);return false;
God, give me courage to do what I can,
humility to admit what I can't,
and wisdom to know the difference.
Opencart mods (search suggestions and so on):
http://forum.opencart.com/viewtopic.php?p=71588#p71588" onclick="window.open(this.href);return false;
I've done as you say, but I still get the same error ..mondy wrote:b"h
You don't have this font, in youre tcpdf/fonts directory, includedin zip file that I added.
you have to use the font 'dejavusans'.
Change the controller.php about line 141 :
instead of --> 'font' => 'helvetica',
change it to ---> 'font' => 'dejavusans',
it has to work.
Mo
TCPDF ERROR: Could not include font definition file: helvetica
Users browsing this forum: Amazon [Bot] and 79 guests