# I can't read the image from pdf (photos not shown on pdf)

**URL:** <https://discuss.tryton.org/t/i-cant-read-the-image-from-pdf-photos-not-shown-on-pdf/3970>\
**Category:** User\
**Tags:** relatorio\
**Created:** [March 23, 2021, 5:44pm UTC](https://discuss.tryton.org/t/i-cant-read-the-image-from-pdf-photos-not-shown-on-pdf/3970 "2021-03-23T17:44:07Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![edbo](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/e/f14d63/32.png) [@edbo](https://discuss.tryton.org/u/edbo)\
**Post date:** [March 24, 2021, 7:56pm UTC](https://discuss.tryton.org/t/i-cant-read-the-image-from-pdf-photos-not-shown-on-pdf/3970/10 "2021-03-24T19:56:26Z")

</div>

It’s a bit hard to get an idea how your report looks like, but your report has something like `for record in records` at the top right? So you can loop over the records. I assume that the `photo` field is in a record.  
~~So change the `<your_record.photo>` to `record.photo` so it will look like:~~

~~ 

```auto
image: (record.photo, "image/png") 

```

 ~~ Again, I assume that the the field is in the record. If you also printing the dates with `record.from_date` and `record.to_date` then you should use `record.photo`. If you use e.g. `rec.from_date` , then you should use `rec.photo`

If it still doesn’t work, try

```auto
image: record.photo 

```

~~If this all doesn’t work, let me know I can dig a bit deeper into this.~~  
The last one should work. I use the same code in one of my reports

---

_[View the full topic](https://discuss.tryton.org/t/i-cant-read-the-image-from-pdf-photos-not-shown-on-pdf/3970)._
