darshanmodi2010 / dompdf

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

not rendering images, showing red cross #362

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
On rendering PDF shows a red X instead of images
Checked for full path on <img src=""/>
Checked URL on browser to be sure image exists

What is the expected output? What do you see instead?
It is expected to show images. It is showing red X

What version of the product are you using? On what operating system?
0-6-0_beta2 on windows XP with Xampp

Please provide any additional information below.
I attach the code as a file

Original issue reported on code.google.com by jaume.he...@gmail.com on 11 Oct 2011 at 1:39

Attachments:

GoogleCodeExporter commented 8 years ago
The attached code doesn't indicate how the image is referenced in the image 
element's src attribute. Is it relative or absolute, include the domain or just 
with path information? As a first step, check to make sure your web server has 
read/write access to the DOMPDF_TEMP_DIR directory.

Also, browse to dompdf/www/setup.php to see a summary of your configuration and 
any possible problems.

Original comment by eclecticgeek on 12 Oct 2011 at 2:18

GoogleCodeExporter commented 8 years ago
This may be related to an issue with spaces in the src.

Original comment by fabien.menager on 23 Oct 2011 at 2:44

GoogleCodeExporter commented 8 years ago
I came across the same bug when I used an absolute URL, e.g. 
"http://example.com/images/myimage.png" in the img tag. My workaround was to 
replace the absolute URLs with relative ones. BTW, this bug doesn't occur in 
version 0.5.2

Original comment by redge...@gmail.com on 26 Jan 2012 at 9:52

GoogleCodeExporter commented 8 years ago
@redgeoff you've managed to work around your problem, however ... this *may* be 
related to a change in the default value for DOMPDF_ENABLE_REMOTE. In 0.5.2 
this is true by default, in 0.6.0 this is false. Any URL that includes a domain 
requires this value to be true.

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

GoogleCodeExporter commented 8 years ago
Thank you! Setting DOMPDF_ENABLE_REMOTE to false also does the trick.

Original comment by redge...@gmail.com on 8 Feb 2012 at 10:03

GoogleCodeExporter commented 8 years ago

Original comment by eclecticgeek on 24 May 2013 at 3:00