fkrauthan / wp-mpdf

Print WordPress posts as PDF. Optional with Geshi highlighting.
56 stars 22 forks source link

issue with images #5

Closed corelanc0d3r closed 8 years ago

corelanc0d3r commented 9 years ago

Hi,

I have noticed that the plugin does not seem to handle images well that have a src set that doesn't contain the website URL.

Example:https://www.corelan.be/index.php/2009/07/19/exploit-writing-tutorial-part-1-stack-based-overflows/

The first image (under "Verify the bug") is created as:

<img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="/wp-content/uploads/2009/07/image_thumb4.png" width="407" height="172" scale="0">

(the "src" does not contain the website URL)

The resulting PDF file shows these images as "missing"

thanks

fkrauthan commented 9 years ago

That should be correctly parsed already. A lot people are actually using images in there PDFs and don't have any problems. Make sure that you give write permissions to all folders that are listed within the install section. It is possible, that it tries to "download" the images but can't do that.