<p>I found any relative link should not lead with a slash.</p>

CC BY-SA 3.0
2016-06-08T07:10:54.803Z
Well done James
Matt P
CC BY-SA 3.0
2016-06-07T15:40:51.760Z
2016-06-07T21:27:49.663Z
2016-06-07T21:27:49.663Z
James
<p>In my order PDF template I have an image that shows when I preview the template as a web page but not in the generated PDF. I’ve tried SVG, PNG and JPEG.</p>

<p>If I use a relative path I get the error <code>Image not readable or empty</code>. With an absolute path I get <code>DOMPDF_ENABLE_REMOTE is set to FALSE</code>.</p>

<templating><plugin-craftcommerce><pdf><dompdf>
How to link images inside an order PDF?
# How to link images inside an order PDF?

(Asked by: username_0 on 2016-06-07)

In my order PDF template I have an image that shows when I preview the template as a web page but not in the generated PDF. I’ve tried SVG, PNG and JPEG.

If I use a relative path I get the error `Image not readable or empty`. With an absolute path I get `DOMPDF_ENABLE_REMOTE is set to FALSE`.

**Tags:** templating, plugin-craftcommerce, pdf, dompdf

---

## 1 answers

### Answer by username_0 on 2016-06-07. Score: 5

I found any relative link should not lead with a slash.

> **Comments:**
> **username_1**: Well done James  

---

