vikrambalye / dompdf

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

The URL exact url path for images are not giving image in output #286

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. call the dompdf to generate pdf using the html file attached with this 
thread.
2.

What is the expected output? What do you see instead?
Expected output is a proper pdf (as displaying in html) nor the cross as 
displayed in generated pdf

What version of the product are you using? On what operating system?
DomPDF version 0.6 beta2 (current release)

Please provide any additional information below.
I had found the following statement:
by default, remote stylesheets, images & inline PHP are disabled

I would like to know then how can we enable images?
I had searched alot but didn't find any solution regarding this.
Please assist.

Thanks
Farhan islam

Original issue reported on code.google.com by far...@askwhyweb.com on 23 May 2011 at 7:56

Attachments:

GoogleCodeExporter commented 9 years ago
By remote we mean references that include the domain portion (e.g. 
http://example.com/images/example.png instead of /images/example.png). To 
enable support for accessing resources using a full URL modify your 
dompdf_config.inc.php or dompdf_config.custom.inc.php so that 
DOMPDF_ENABLE_REMOTE is set to true.

Original comment by eclecticgeek on 23 May 2011 at 7:30

GoogleCodeExporter commented 9 years ago
I had the same problem (remote images not being displayed), but it was solved 
by setting a correct and writable DOMPDF_TEMP_DIR in dompdf_config.inc.php.

Suggestion: maybe add a little note to the documentation for 
DOMPDF_ENABLE_REMOTE, that the temp dir should be valid for remote images to 
work?

Remote CSS files do not require the temp dir, so it seems.

Original comment by brikk...@gmail.com on 10 Oct 2011 at 8:21

GoogleCodeExporter commented 9 years ago

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