# Watcher PDF/PNG auto-generated attached report broken when sending through email ( version 7.2)

**URL:** <https://discuss.elastic.co/t/watcher-pdf-png-auto-generated-attached-report-broken-when-sending-through-email-version-7-2/191510>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [July 21, 2019, 10:21am UTC](https://discuss.elastic.co/t/watcher-pdf-png-auto-generated-attached-report-broken-when-sending-through-email-version-7-2/191510 "2019-07-21T10:21:42Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![tazzking](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@tazzking](https://discuss.elastic.co/u/tazzking)\
**Post date:** [July 21, 2019, 10:21am UTC](https://discuss.elastic.co/t/watcher-pdf-png-auto-generated-attached-report-broken-when-sending-through-email-version-7-2/191510/1 "2019-07-21T10:21:43Z")

</div>

Hello Everyone,

I have configured the watcher to send email with dashboard preview attachment as PDF or PNG, it generate the report (can be found in Kibana report) and send the email. But somehow the email attachment get broken with error "Failed to load pdf document". Not sure if there is any formatting issue in here. Can somebody help....

PUT \_watcher/watch/demo\_report\_8  
{  
"trigger" : {  
"schedule": {  
"interval": "1h"  
}  
},  
"actions" : {  
"email\_admin" : {  
"email" : {  
"to": "abc@abc.com",  
"cc": "xyz@abc.com",  
"subject": "Monitoring Report",  
"body" : "{{ctx.payload.hits.total}} Metricbeat Report",  
"attachments" : {  
"Metricbeat.png" : {  
"http" : {  
"content\_type" : "image/png",  
"request" : {  
"method": "POST",  
"headers": {  
"kbn-xsrf": "reporting"  
},  
"read\_timeout": "300s",  
"auth":{  
"basic":{  
"username":"elastic",  
"password":"\*\*\*\*\*\*"  
}  
},  
"url": "[http://0.0.0.0:5601/api/reporting/generate/dashboard/Metricbeat-system-overview-ecs?\_g=(time:(from:now-1d%2Fd,mode:quick,to:now-1d%2Fd)](http://0.0.0.0:5601/api/reporting/generate/dashboard/Metricbeat-system-overview-ecs?_g=(time:(from:now-1d%2Fd,mode:quick,to:now-1d%2Fd)))&sync"  
}  
}  
}  
}  
}  
}  
}  
}

---

_[View the full topic](https://discuss.elastic.co/t/watcher-pdf-png-auto-generated-attached-report-broken-when-sending-through-email-version-7-2/191510)._
