# Check if PDF is generated or not in synthetic

**URL:** <https://community.dynatrace.com/t/check-if-pdf-is-generated-or-not-in-synthetic/18975>\
**Category:** Synthetic Monitoring\
**Tags:** http-monitor, browser-monitors\
**Created:** [April 6, 2020, 12:28pm UTC](https://community.dynatrace.com/t/check-if-pdf-is-generated-or-not-in-synthetic/18975 "2020-04-06T12:28:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ak/32/164_2.png) [@AK](https://community.dynatrace.com/u/AK)\
**Post date:** [April 6, 2020, 12:28pm UTC](https://community.dynatrace.com/t/check-if-pdf-is-generated-or-not-in-synthetic/18975/1 "2020-04-06T12:28:54Z")

</div>

Hello Folks,

Can we check PDF generation in synthetic via Browser or HTTP monitor? Possible to check text on the PDF so we get to know that its generation is successful.

Thanks..

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [April 6, 2020, 1:30pm UTC](https://community.dynatrace.com/t/check-if-pdf-is-generated-or-not-in-synthetic/18975/2 "2020-04-06T13:30:34Z")

</div>

In general you should be able to check response headers. if PDF is not generated you should be able to see html page that is affected by error. When PDF is generated, you will get file so headers would be different.

```auto
Content-type:application/pdf

```

It’s not possible to validate PDF content.

Sebastian

---

<div class="post-metadata">

**Author:** ![KMichaels](https://avatars.discourse-cdn.com/v4/letter/k/eb9ed0/32.png) [@KMichaels](https://community.dynatrace.com/u/KMichaels)\
**Post date:** [July 28, 2020, 6:53pm UTC](https://community.dynatrace.com/t/check-if-pdf-is-generated-or-not-in-synthetic/18975/3 "2020-07-28T18:53:02Z")

</div>

So was this possible in Browser or HTTP Monitor? I’m trying to understand if we can at least validate in a Browser monitor if the PDF did open or not. I don’t see a way to validate headers in a browser monitor.

Thanks
