Jeckky / dompdf

Automatically exported from code.google.com/p/dompdf
0 stars 0 forks source link

Rendering images from my site #413

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
I am using dompdf with the printer module in drupal 7 and i am rendering HTML 
in PDF.
In my local server XAMPP all is fine, my images are displayed. But on the 
remote server, I can't get images from my site to work. Images from others 
sites work fine...

What is the expected output? What do you see instead?
The images. Instead I have a red cross image.

What version of dompdf are you using? What version of PHP? On what
operating system?
dompdf version : 0_6_0_beta2 PHP : 5.3.8 OS: Linux

Please provide the HTML source code you want to convert, or any additional
information.
Just an image tag <img src="path_to_my_image/image.jpg" />

My web-server user has write access to the tmp directory and i can see 
temporary files created in it when trying to render images in the PDF.

Original issue reported on code.google.com by rtam...@pragmatic-conseil.fr on 30 Jan 2012 at 3:33

GoogleCodeExporter commented 9 years ago
Hello, I think the Google Groups would have been a better place to ask your 
question, but can you give a sample image that doesn't render, or a link to the 
page, if possible ?

Original comment by fabien.menager on 30 Jan 2012 at 6:14

GoogleCodeExporter commented 9 years ago
Hello Fabien,
Unfortunately I can't give you a link to the page. The website still under 
development and is protected by htaccess.
For the sample image, any jpg or png reproduce this issue.
There is the result on a sample PDF generated (the image that is showing up is 
from another website)

Original comment by rtam...@pragmatic-conseil.fr on 31 Jan 2012 at 8:33

Attachments:

GoogleCodeExporter commented 9 years ago
As i was writting I realised that maybe the password htaccess forbid dompdf to 
use the images.
So I desactivated the password and all work fine now.

Original comment by rtam...@pragmatic-conseil.fr on 31 Jan 2012 at 9:44

GoogleCodeExporter commented 9 years ago
Great! That's something we forget easily ;) 
That gives me an idea for a new information to display when images cannot be 
downloaded as there is a message now if you use the version from the SVN trunk.

Original comment by fabien.menager on 31 Jan 2012 at 10:36

GoogleCodeExporter commented 9 years ago
I don't know if you still need to keep the site hidden, but I believe there's a 
way your can specify that a connection either has to supply a password or come 
from a specified IP address. Google should be able to find you an example. Just 
FYI.

Original comment by eclecticgeek on 5 Feb 2012 at 1:47

GoogleCodeExporter commented 9 years ago

Original comment by eclecticgeek on 30 May 2013 at 5:16