WordPress.org

Forums

eShop-invoice
[resolved] Acrobat couldn't open the pdf file (17 posts)

  1. ch.guy
    Member
    Posted 2 years ago #

    Hi Thomas,

    For me, your plugin works well (My order history widget, the shortcode in the page etc.)until I try to download and print the invoice.
    At this time I have an error message from Acrobat. Here is a link to the screen capture :
    http://charlesguy.com/eshop-invoice-pdf-failed-screen-capture-ch-guy.jpg

    Thank you in advance for help

    Charles

    http://wordpress.org/extend/plugins/eshop-invoice/

  2. thomaslcq
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Charles !

    Thanks for the beers !!!

    This error often comes when the content of the invoice raises an error upon loading. I suppose you are not using the default invoice (the one in the template/default folder), otherwise the name of the PDF should be different ($transaction_id + .pdf) ?

    Best regards from Brussels,

  3. ch.guy
    Member
    Posted 2 years ago #

    Hi Thomas,

    You are welcome.

    Trying withe Opera (the first error came with Firefox); I had this message :
    http://www.charlesguy.com/eshop-invoice-pdf-failed-screen-capture-ch-guy-opera.jpg
    Maybe this will help.

    Regards

    Charles from Paris

  4. thomaslcq
    Member
    Plugin Author

    Posted 2 years ago #

    you are using the latest version, right ? The image is available for non-registred users ? (did you define an image/logo?)

  5. ch.guy
    Member
    Posted 2 years ago #

    Yes of course, Thomas
    I thought I have defined the logo but probably didn't save the change...
    Sorry.
    Now I have the pdf :
    http://www.charlesguy.com/INVOICE-TEST-57G75280B0746442F-1.pdf
    1st question : I can't see the seller's details anywhere
    2nd question : I have 6 pages for one order (with 6 items). Do I have to edit a new template to have only one pdf page ?
    Thnk you in advance.
    Charles

  6. thomaslcq
    Member
    Plugin Author

    Posted 2 years ago #

    Seller detail :: mmm ..must have forgotten that :)
    Edit template :: yes, indeed, you have to remove the calls to invoice_B.php in invoice.php and you'll only have the table !

  7. ch.guy
    Member
    Posted 2 years ago #

    Seller details under the logo could be great.
    Or at the bottom of the page...

    OK, found how to custom the default template to have only the listing
    Thank you.

  8. thomaslcq
    Member
    Plugin Author

    Posted 2 years ago #

    ok

  9. weddingjewelry
    Member
    Posted 2 years ago #

    Hi, I would really love some help. when I try to open the invoice, I get the message, " File does not begin with '%PDF-'. Local\EWHuns2)]8j with IE. (url is : http://weddingjewelrydesigns.com/wp-content/plugins/eshop-invoice/templates/default/invoice.php?invoice=11569017K2965294G&admin_override=yes)
    On firefox, (url : http://weddingjewelrydesigns.com/wp-content/plugins/eshop-invoice/templates/default/invoice.php?invoice=11569017K2965294G&admin_override=yes) THE TAB SAYS "INVOICE.PHP" I get a yellow warning that THIS PDF document might not be displayed properly - asks me if I want to open with another viewer, and if I choose yes, ....
    You have chosen to open... invoice.php (adobe acrobat document,
    and I can open with adobe acrobat, default or save.. If I open with acrobat, I get the message, "adobe reader could not open 'invoice.php-3.pdf' because it is either not a supported file type or the file has been damaged.

    Your plugin works seamlessly on my other site.
    I'd love some help.
    I don't understand what it means to remove a call.
    thank you.
    http://weddingjewelrydesigns.com

  10. thomaslcq
    Member
    Plugin Author

    Posted 2 years ago #

    Well, first, it's realllllly strange, but I can open the link above, although IT SHOULD NOT be possible... so there is a security bug there... I'll have to investigate that...

    Second, well, the PDF does display properly on my Firefox, with no warning or security issue. It's probably your User configuration that is problematic.. Are you using windows, linux, macos ?

    remove a call= remove the lines that mention we are "requiring/importing" the invoice_part2.

    Thom

  11. weddingjewelry
    Member
    Posted 2 years ago #

    Thanks so much for the speedy reply.. I'm using windows 7 64bit.
    I'm sorry, but i need a bit more insttuctions on what to remove....
    there are so many files, I don't want to mess it all up...
    thank you.

  12. thomaslcq
    Member
    Plugin Author

    Posted 2 years ago #

    So, to be sure : first update to 0.4 for security reasons...

    then, if you only want to have the table for the invoice (page 1) then, in this file (http://plugins.trac.wordpress.org/browser/eshop-invoice/tags/0.4/templates/default/invoice.php) remove the lines 99 to 117 . They are the ones controlling pages 2->N+1 (where N is the number of lines in the invoice)

    Thom

  13. weddingjewelry
    Member
    Posted 2 years ago #

    I really thank you, Thom.
    All resolved!. What fabulous support!
    Thank you ever so much!

  14. thomaslcq
    Member
    Plugin Author

    Posted 2 years ago #

    Pleasure !

    please take some time to say that the plugin works on the main page :-)

  15. Nofrills
    Member
    Posted 2 years ago #

    Hi again Thomas.
    After updating to 0.4 incoices donĀ“t show up (printed) .
    What to do?

  16. thomaslcq
    Member
    Plugin Author

    Posted 2 years ago #

    I think I should re-think the way the template works... I'm not sure that the custom templates defined by users are not erased by the update...

  17. thomaslcq
    Member
    Plugin Author

    Posted 2 years ago #

    Nofrills' problem found: it was a missing logo...

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags