Page 1 of 4

[Extension] Invoice to PDF 1.2 release (also support thread)

Posted: Mon Sep 03, 2012 11:52 pm
by cgsmith
Hello everyone,

Invoice to PDF 1.20.154 is officially released for the low price of FREE. Check out the extension page.

If you have any issues, feel free to post them here.

Re: [Extension] Invoice to PDF 1.2 release (also support thr

Posted: Tue Sep 04, 2012 4:27 am
by cgsmith
Here is an updated vqMod script for 1.21.154

This allows you to change the downloaded PDF name under /system/helper/pdf.php

Available options are:
  • order_id
    invoice_id
    date_added
    email
/system/helper/pdf.php:

Code: Select all

$name = 'Order_'.$name[0]['invoice_no'];

Re: [Extension] Invoice to PDF 1.2 release (also support thr

Posted: Wed Sep 05, 2012 6:03 am
by javabean
Thanks for this mod. This is great because I've been printing invoices that show the URL on the printed invoice but with the PDF the URL data doesn't show up there any more. I installed this mod but on the PDF invoice my store logo doesn't show up and returns this:

DOMPDF_ENABLE_REMOTE is set to FALSE
http://www.myshop.com/image/data/logo.png

any ideas?

EDIT:
Got it! Read through some of the mod comments.
- "Try setting the DOMPDF_ENABLE_REMOTE to true in this location: /system/library/dompdf/dompdf_config.inc.php (line 288)"
- " You will have to delete the vqmod/vqcache/vq2-admin_view_template_sale_order_invoice.tpl file to see changes immediately."

Thanks again!

Re: [Extension] Invoice to PDF 1.2 release (also support thr

Posted: Wed Sep 05, 2012 10:24 am
by cgsmith
I appreciate the compliment! Glad to see you found my solution buried in the comments on the extension page :) !

Just an FYI, the current download has the DOMPDF_ENABLE_REMOTE set to true.

Re: [Extension] Invoice to PDF 1.2 release (also support thr

Posted: Wed Sep 05, 2012 9:50 pm
by javabean
is there an easy way to modify this mod to make the pdf into a packing slip where there prices does not show? i've looked in many places but there is no real solution for people on the current release of opencart and i think this is a very popular feature people are looking for.

Re: [Extension] Invoice to PDF 1.2 release (also support thr

Posted: Wed Sep 05, 2012 9:54 pm
by cgsmith
That's another great suggestion.

The quickest, dirtiest way, to do this is to modify the order_invoice.tpl file in admin/view/template/sale/order_invoice.tpl and edit out the price lines.

I will put it on a to-do list to program a packing list.

I posted my code on Github if people care to fork/edit it.

Re: [Extension] Invoice to PDF 1.2 release (also support thr

Posted: Wed Sep 26, 2012 10:12 pm
by jakuba
Hi, i need UTF-8 PDF export. What file I need to change? Thank you
Which font is default? Used font unsupport symbols in my language.

Re: [Extension] Invoice to PDF 1.2 release (also support thr

Posted: Sat Oct 13, 2012 1:01 am
by estateP
Hi

I have uploaded the extension and changed the permissions on the fonts folder to 777, but when I try to generate a pdf invoice I get the following:

Code: Select all

array ( 'sans-serif' => array ( 'normal' => DOMPDF_FONT_DIR . 'Helvetica', 'bold' => DOMPDF_FONT_DIR . 'Helvetica-Bold', 'italic' => DOMPDF_FONT_DIR . 'Helvetica-Oblique', 'bold_italic' => DOMPDF_FONT_DIR . 'Helvetica-BoldOblique', ), 'times' => array ( 'normal' => DOMPDF_FONT_DIR . 'Times-Roman', 'bold' => DOMPDF_FONT_DIR . 'Times-Bold', 'italic' => DOMPDF_FONT_DIR . 'Times-Italic', 'bold_italic' => DOMPDF_FONT_DIR . 'Times-BoldItalic', ), 'times-roman' => array ( 'normal' => DOMPDF_FONT_DIR . 'Times-Roman', 'bold' => DOMPDF_FONT_DIR . 'Times-Bold', 'italic' => DOMPDF_FONT_DIR . 'Times-Italic', 'bold_italic' => DOMPDF_FONT_DIR . 'Times-BoldItalic', ), 'courier' => array ( 'normal' => DOMPDF_FONT_DIR . 'Courier', 'bold' => DOMPDF_FONT_DIR . 'Courier-Bold', 'italic' => DOMPDF_FONT_DIR . 'Courier-Oblique', 'bold_italic' => DOMPDF_FONT_DIR . 'Courier-BoldOblique', ), 'helvetica' => array ( 'normal' => DOMPDF_FONT_DIR . 'Helvetica', 'bold' => DOMPDF_FONT_DIR . 'Helvetica-Bold', 'italic' => DOMPDF_FONT_DIR . 'Helvetica-Oblique', 'bold_italic' => DOMPDF_FONT_DIR . 'Helvetica-BoldOblique', ), 'zapfdingbats' => array ( 'normal' => DOMPDF_FONT_DIR . 'ZapfDingbats', 'bold' => DOMPDF_FONT_DIR . 'ZapfDingbats', 'italic' => DOMPDF_FONT_DIR . 'ZapfDingbats', 'bold_italic' => DOMPDF_FONT_DIR . 'ZapfDingbats', ), 'serif' => array ( 'normal' => DOMPDF_FONT_DIR . 'Times-Roman', 'bold' => DOMPDF_FONT_DIR . 'Times-Bold', 'italic' => DOMPDF_FONT_DIR . 'Times-Italic', 'bold_italic' => DOMPDF_FONT_DIR . 'Times-BoldItalic', ), 'monospace' => array ( 'normal' => DOMPDF_FONT_DIR . 'Courier', 'bold' => DOMPDF_FONT_DIR . 'Courier-Bold', 'italic' => DOMPDF_FONT_DIR . 'Courier-Oblique', 'bold_italic' => DOMPDF_FONT_DIR . 'Courier-BoldOblique', ), 'fixed' => array ( 'normal' => DOMPDF_FONT_DIR . 'Courier', 'bold' => DOMPDF_FONT_DIR . 'Courier-Bold', 'italic' => DOMPDF_FONT_DIR . 'Courier-Oblique', 'bold_italic' => DOMPDF_FONT_DIR . 'Courier-BoldOblique', ), // 'arial' => // array ( // 'normal' => DOMPDF_FONT_DIR . 'Arial', // 'bold' => DOMPDF_FONT_DIR . 'Arial_Bold', // 'italic' => DOMPDF_FONT_DIR . 'Arial_Italic', // 'bold_italic' => DOMPDF_FONT_DIR . 'Arial_Bold_Italic', // ), // 'comic sans' => // array ( // 'normal' => DOMPDF_FONT_DIR . 'Comic_Sans_MS.ttf', // 'bold' => DOMPDF_FONT_DIR . 'Comic_Sans_MS_Bold.ttf', // 'italic' => DOMPDF_FONT_DIR . 'Comic_Sans_MS.ttf', // 'bold_italic' => DOMPDF_FONT_DIR . 'Comic_Sans_MS.ttf', // ), // 'georgia' => // array ( // 'normal' => DOMPDF_FONT_DIR . 'Georgia', // 'bold' => DOMPDF_FONT_DIR . 'Georgia_Bold', // 'italic' => DOMPDF_FONT_DIR . 'Georgia_Italic', // 'bold_italic' => DOMPDF_FONT_DIR . 'Georgia_Bold_Italic', // ), // 'lucida console' => // array ( // 'normal' => DOMPDF_FONT_DIR . 'lucon', // 'bold' => DOMPDF_FONT_DIR . 'lucon', // 'italic' => DOMPDF_FONT_DIR . 'lucon', // 'bold_italic' => DOMPDF_FONT_DIR . 'lucon', // ), // 'times new roman' => // array ( // 'normal' => DOMPDF_FONT_DIR . 'Times_New_Roman', // 'bold' => DOMPDF_FONT_DIR . 'Times_New_Roman_Bold', // 'italic' => DOMPDF_FONT_DIR . 'Times_New_Roman_Italic', // 'bold_italic' => DOMPDF_FONT_DIR . 'Times_New_Roman_Bold_Italic', // ), // 'trebuchet' => // array ( // 'normal' => DOMPDF_FONT_DIR . 'Trebuchet_MS', // 'bold' => DOMPDF_FONT_DIR . 'Trebuchet_MS_Bold', // 'italic' => DOMPDF_FONT_DIR . 'Trebuchet_MS_Italic', // 'bold_italic' => DOMPDF_FONT_DIR . 'Trebuchet_MS_Bold_Italic', // ), // 'trebuchet ms' => // array ( // 'normal' => DOMPDF_FONT_DIR . 'Trebuchet_MS', // 'bold' => DOMPDF_FONT_DIR . 'Trebuchet_MS_Bold', // 'italic' => DOMPDF_FONT_DIR . 'Trebuchet_MS_Italic', // 'bold_italic' => DOMPDF_FONT_DIR . 'Trebuchet_MS_Bold_Italic', // ), // 'silkscreen' => // array ( // 'normal' => DOMPDF_FONT_DIR . 'slkscr', // 'bold' => DOMPDF_FONT_DIR . 'slkscrb', // 'italic' => DOMPDF_FONT_DIR . 'slkscr', // 'bold_italic' => DOMPDF_FONT_DIR . 'slkscr', // ), // 'silkscreen expanded' => // array ( // 'normal' => DOMPDF_FONT_DIR . 'slkscre', // 'bold' => DOMPDF_FONT_DIR . 'slkscreb', // 'italic' => DOMPDF_FONT_DIR . 'slkscre', // 'bold_italic' => DOMPDF_FONT_DIR . 'slkscre', // ), // 'verdana' => // array ( // 'normal' => DOMPDF_FONT_DIR . 'Verdana', // 'bold' => DOMPDF_FONT_DIR . 'Verdana_Bold', // 'italic' => DOMPDF_FONT_DIR . 'Verdana_Italic', // 'bold_italic' => DOMPDF_FONT_DIR . 'Verdana_Bold_Italic', // ), )
Don't know what is going wrong. I am using OC v1.5.3.1

Re: [Extension] Invoice to PDF 1.2 release (also support thr

Posted: Mon Oct 22, 2012 3:51 pm
by thejagular
I have successfully got this to work! But I have a problem with swedish translation. å, ä, ö is not working when I export to PDF. It works fine when I press the normal button "print invoice".. Any way to solve this? Looked for some files changed from ANSI but have not found anything affecting this..

Best regards Erik

Re: [Extension] Invoice to PDF 1.2 release (also support thr

Posted: Tue Oct 23, 2012 9:57 pm
by craig@thekeyvan.com
I am wondering if your software could help my problem. When I list a product, in the data section, we put a location, where the item can be found in our store. We want that then to print out in any order we recieve, but cant see how to do this. Can you add any extra fields to the pdf , or does it only print out exactly what is on invoice

Cheers
Ray

Re: [Extension] Invoice to PDF 1.2 release (also support thr

Posted: Wed Nov 07, 2012 5:34 am
by Brite Light LEDs
just installed this, works fine apart from two things

1. i have a image as a logo on my invoice, it displays this error on the pdf -
DOMPDF_ENABLE_REMOTE is set to FALSE
http://www.britelightleds.co.uk/Images/invoicelogo.jpg

2, the pound sign in front of each total looks like this

£

when should be £

please help, its to print to ipad !!


also i have to large of a gap at the top when converted to PDF, this messes up printing for my labels as need to be lined up correctly

Re: [Extension] Invoice to PDF 1.2 release (also support thr

Posted: Fri Nov 09, 2012 4:33 am
by Brite Light LEDs
sorted the images issue,

just the  symobol before the £ price is left to do now

any one able to help?

Re: [Extension] Invoice to PDF 1.2 release (also support thr

Posted: Tue Nov 13, 2012 8:35 pm
by ichpen
Great free extension. How does one 'automagically' attach the pdf invoice to the order email? That would be an excellent feature.

Re: [Extension] Invoice to PDF 1.2 release (also support thr

Posted: Sun Nov 25, 2012 11:54 pm
by Brite Light LEDs
any ideas on pound sign?

Re: [Extension] Invoice to PDF 1.2 release (also support thr

Posted: Thu Dec 27, 2012 5:40 pm
by Ale88
For me it all works, but in stead of euro signs, I get question marks in the pdf output.
I Downloaded dompdf_0-6-0_beta3 ,Replaceed the system/library/dompdf directory with the new version and setting chmod (777) directory system/library/dompdf/lib/fonts. this, not works !!
How can I fix it? Thanks for all

Re: [Extension] Invoice to PDF 1.2 release (also support thr

Posted: Thu Dec 27, 2012 6:34 pm
by Ale88
I solved , but not a good way.
Replace in file admin/view/template/sale/order_invoice.tpl , <?php echo $total['text']; ?> in <?php echo str_replace('€','&euro;',$total['text']); ?>

Re: [Extension] Invoice to PDF 1.2 release (also support thr

Posted: Sat Dec 29, 2012 12:16 am
by Brite Light LEDs
so no real fix for this? :( just want a pound sign

Re: [Extension] Invoice to PDF 1.2 release (also support thr

Posted: Sun Jan 13, 2013 8:07 am
by jadeye
Hello & thank you for the work you have put in to this Invoice to PDF extension...

I have installed it twice (OC v1.5.0) following the instructions (chmod 777 on the upload\system\library\dompdf\lib\fonts folder):

1. Module from OpenCart Website GAVE:
Fatal error: Call to undefined function pdf() in /home/public_html/gushpetshop.com/vqmod/vqcache/vq2-admin_controller_sale_order.php on line 1944
2. Module from your OpenCart Website GAVE:
http://cgsmith.github.com/opencart-extensions/
Parse error: syntax error, unexpected T_ELSE, expecting T_FUNCTION in /home/jadeye/public_html/gushpetshop.com/vqmod/vqcache/vq2-admin_controller_sale_order.php on line 1960

What am I doing wrong??

Thank you.

Re: [Extension] Invoice to PDF 1.2 release (also support thr

Posted: Tue Jan 29, 2013 12:48 am
by psychosonicsid
Brite Light LEDs wrote:sorted the images issue,

just the  symobol before the £ price is left to do now

any one able to help?
Did you manage to get a fix for this? I have just installed the module and am getting the  before £ problem, but only on the PDF - regular invoices are fine.

Re: [Extension] Invoice to PDF 1.2 release (also support thr

Posted: Tue Jan 29, 2013 2:07 pm
by jadeye
No one has a solution I guess...no one has answered...not even the developer and I wrote him personally.

Too bad...it was also causing errors on the admin orders model.

I uninstalled it.
jadeye wrote:Hello & thank you for the work you have put in to this Invoice to PDF extension...

I have installed it twice (OC v1.5.0) following the instructions (chmod 777 on the upload\system\library\dompdf\lib\fonts folder):

1. Module from OpenCart Website GAVE:
Fatal error: Call to undefined function pdf() in /home/public_html/gushpetshop.com/vqmod/vqcache/vq2-admin_controller_sale_order.php on line 1944
2. Module from your OpenCart Website GAVE:
http://cgsmith.github.com/opencart-extensions/
Parse error: syntax error, unexpected T_ELSE, expecting T_FUNCTION in /home/jadeye/public_html/gushpetshop.com/vqmod/vqcache/vq2-admin_controller_sale_order.php on line 1960

What am I doing wrong??

Thank you.