mohanjith / web-invoice

Automatically exported from code.google.com/p/web-invoice
GNU General Public License v3.0
0 stars 2 forks source link

Logo / images do not work in PDF #44

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create an invoice.
2. Login as test client and view invoice
3. Click PDF link to print invoice

What is the expected output? What do you see instead?

Expected output - Logo (image), included within PDF file
Actual output - PDF file does not include logo (image)

What version of the product are you using? On what operating system?

Version 2.0.13 on Wordpress 3.0.1, on CentOS 5.5 running PHP 5.2.13, MySQL 
5.1.41, Apache 2.2.15

Please provide any additional information below.

Current PDF template used in plugin options is:

<html>
        <head>
            <title>Invoice</title>
            <meta http-equiv='Content-Type' content='text/html; charset=UTF-8' />
        </head>
        <body>
            <div id='invoice_page' class='clearfix'>
                <img style='float: right;' src='http://xxxxxxxxx.com/wp-content/plugins/web-invoice/images/web-invoice.png' style='width:101px; height: 128px;' />
                <h1>Invoice</h1>
                %content
            </div>
        </body>
    </html>

Original issue reported on code.google.com by rige...@gmail.com on 19 Aug 2010 at 7:23

GoogleCodeExporter commented 9 years ago
Issue 43 has been merged into this issue.

Original comment by sh.mohanjith on 19 Aug 2010 at 7:25

GoogleCodeExporter commented 9 years ago
I have tried subtle syntax changes, but they don't seem to include images in 
the PDF either:

<html>
<head>
<title>Invoice</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<img style="float:right;width:101px;height:128px;" img 
src="http://xxxxxx.com/wp-content/plugins/web-invoice/images/web-invoice.png" />
<div id="invoice_page" class="clearfix">
<h1>Invoice</h1>
%content
</div>
</body>
</html>

Original comment by rige...@gmail.com on 19 Aug 2010 at 10:23

GoogleCodeExporter commented 9 years ago
Hmmm... Placing the image inside the DIV tag (invoice_page ID) does not seem to 
work either.

Original comment by rige...@gmail.com on 19 Aug 2010 at 10:24

GoogleCodeExporter commented 9 years ago

Original comment by sh.mohanjith on 22 Aug 2010 at 8:29

GoogleCodeExporter commented 9 years ago
See http://www.digitaljunkies.ca/dompdf/usage.php#image, it's because of a 
limitation in DOMPDF. Please use a GIF, a PNG with a binary transparency, or a 
PNG with no transparency.

...PNGs with binary transparency are supported but PNGs with an alpha channel 
are not...

Changed the default template to use a GIF in r69 , thanks.

Original comment by sh.mohanjith on 22 Aug 2010 at 5:48

GoogleCodeExporter commented 9 years ago
Hi any reason why I dont see any logo on a ubuntu 10.04 lts server.

I'm runnig wordpres 3.0.4 and youre latest web-invoice version.

File in /tmp/ get created but they are all empty.

I'm using the web-invoice.gif file.  And I dont see any error in my apache log.

Original comment by guillaum...@gmail.com on 12 Jan 2011 at 2:06