Author Topic: Broken logo in PDF invoice  (Read 2705 times)

Offline one

  • Sr. Member
  • ****
  • Posts: 65
    • View Profile
    • Lux COM SERVICE, SIA - Professional Customers Support
Broken logo in PDF invoice
« on: 09/September/2010, 02:59:28 PM »
I use PNG format logo file and when generate invoice in PDF is see logo is broken. How I can fix this?

Online netshine

  • Administrator
  • Hero Member
  • *****
  • Posts: 4,952
    • View Profile
Re: Broken logo in PDF invoice
« Reply #1 on: 09/September/2010, 04:45:20 PM »
Are you saying it works with a gif but not a png? Or it does not work at all?

Make sure your /cache/ and /out/ folders (within the pdfwriter folder) are both writable by the user PHP runs under. Also re-download the html2ps script and re-upload it to your site in case any files got corrupted or missed.

Offline one

  • Sr. Member
  • ****
  • Posts: 65
    • View Profile
    • Lux COM SERVICE, SIA - Professional Customers Support
Re: Broken logo in PDF invoice
« Reply #2 on: 09/September/2010, 05:06:20 PM »
I see this problem with PNG format logo. Now I have tested with GIF and with this format PDF has generated normaly.

All folder you ask have corect rights

Online netshine

  • Administrator
  • Hero Member
  • *****
  • Posts: 4,952
    • View Profile
Re: Broken logo in PDF invoice
« Reply #3 on: 11/September/2010, 08:22:55 AM »
Ok, well the workaround is to use a gif then! I will look into why png files are not being shown, although as I did not write the PDF generator, there is a chance that it might not be possible for me to fix.

Offline one

  • Sr. Member
  • ****
  • Posts: 65
    • View Profile
    • Lux COM SERVICE, SIA - Professional Customers Support
Re: Broken logo in PDF invoice
« Reply #4 on: 11/September/2010, 08:41:56 AM »
Clear. And what about JPG?

Online netshine

  • Administrator
  • Hero Member
  • *****
  • Posts: 4,952
    • View Profile
Re: Broken logo in PDF invoice
« Reply #5 on: 11/September/2010, 09:56:08 AM »
Jpegs are for photographs, they are not meant to be used for logos, as they distort hard edges.

Offline one

  • Sr. Member
  • ****
  • Posts: 65
    • View Profile
    • Lux COM SERVICE, SIA - Professional Customers Support
Re: Broken logo in PDF invoice
« Reply #6 on: 11/September/2010, 10:22:10 AM »
Clear!

Offline one

  • Sr. Member
  • ****
  • Posts: 65
    • View Profile
    • Lux COM SERVICE, SIA - Professional Customers Support
Re: Broken logo in PDF invoice
« Reply #7 on: 18/May/2012, 07:29:29 PM »
I have same problem on nBill Lite now. PNG, GIF logos not showing on invoice in PDF format.
« Last Edit: 18/May/2012, 07:35:09 PM by one »

Offline one

  • Sr. Member
  • ****
  • Posts: 65
    • View Profile
    • Lux COM SERVICE, SIA - Professional Customers Support
Re: Broken logo in PDF invoice
« Reply #8 on: 18/May/2012, 07:47:20 PM »

Online netshine

  • Administrator
  • Hero Member
  • *****
  • Posts: 4,952
    • View Profile
Re: Broken logo in PDF invoice
« Reply #9 on: 19/May/2012, 03:59:18 PM »
What happens if you visit http://www.domain.com/index.php?option=com_nbill&tmpl=component&action=show_image&file_name=vendors/1.gif&Itemid=999999999 in a browser? (after replacing domain.com with your actual domain of course).

Offline one

  • Sr. Member
  • ****
  • Posts: 65
    • View Profile
    • Lux COM SERVICE, SIA - Professional Customers Support
Re: Broken logo in PDF invoice
« Reply #10 on: 19/May/2012, 06:34:46 PM »
I see vendor logo...

Online netshine

  • Administrator
  • Hero Member
  • *****
  • Posts: 4,952
    • View Profile
Re: Broken logo in PDF invoice
« Reply #11 on: 21/May/2012, 09:25:40 AM »
Try deleting and then re-uploading your vendor logo (using the nBill vendor record to upload the logo, not FTP). Double check the file permissions on the logo image file to make sure it is readable by the user PHP is running under.

Offline one

  • Sr. Member
  • ****
  • Posts: 65
    • View Profile
    • Lux COM SERVICE, SIA - Professional Customers Support
Re: Broken logo in PDF invoice
« Reply #12 on: 21/May/2012, 11:31:55 AM »
Quote
(using the nBill vendor record to upload the logo, not FTP)
I have done that with gif and jpg file format. I have try to change file permission to 777. The same result...

Offline one

  • Sr. Member
  • ****
  • Posts: 65
    • View Profile
    • Lux COM SERVICE, SIA - Professional Customers Support
Re: Broken logo in PDF invoice
« Reply #13 on: 26/May/2012, 10:33:55 AM »
I have put image directly to tempate with path to image components/com_nbill/images/vendors/imagename and now it shown on PDF invoices.

Online netshine

  • Administrator
  • Hero Member
  • *****
  • Posts: 4,952
    • View Profile
Re: Broken logo in PDF invoice
« Reply #14 on: 26/May/2012, 06:56:55 PM »
Sorry, I didn't see your previous reply for some reason (the forum normally flags new posts, but failed to do so in this case). Glad you found a workaround anyway!

 

anything