# Export webpage as a PDF

**URL:** <https://forums.pega.com/t/export-webpage-as-a-pdf/551>\
**Category:** General\
**Tags:** data-integration, pega-platform\
**Created:** [September 14, 2020, 2:56pm UTC](https://forums.pega.com/t/export-webpage-as-a-pdf/551 "2020-09-14T14:56:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://cdck-file-uploads-pega1.s3.dualstack.us-west-2.amazonaws.com/pegasbx/original/1X/000334954d35e690a08019a81d1b9bcfa13a435e.png) [@system](https://forums.pega.com/u/system)\
**Post date:** [September 14, 2020, 2:56pm UTC](https://forums.pega.com/t/export-webpage-as-a-pdf/551/1 "2020-09-14T14:56:35Z")

</div>

Hi,

We have a requirement to save the webpage as a PDF. We are using OOTB activity “pyViewasPDF” and passing the HTML rule(attached). PDF is generating but some invalid data is displaying in the generated pdf(attached the screenshot).

Can anyone help on this.

Regards,

Sri

 ![HTML.JPG](https://pega1.discourse-cdn.com/pega/original/2X/f/f8fe363b5f133a31d1e076f84c7b721ebceaacb9.jpeg)

![exported_pdf.JPG](https://pega1.discourse-cdn.com/pega/optimized/2X/7/7abbe48a2044f1637b8aed4c2c97df83126e2990_2_690x39.jpeg)

---

<div class="post-metadata">

**Author:** ![system](https://cdck-file-uploads-pega1.s3.dualstack.us-west-2.amazonaws.com/pegasbx/original/1X/000334954d35e690a08019a81d1b9bcfa13a435e.png) [@system](https://forums.pega.com/u/system)\
**Post date:** [September 16, 2020, 1:16pm UTC](https://forums.pega.com/t/export-webpage-as-a-pdf/551/2 "2020-09-16T13:16:36Z")

</div>

Issue got resolved.

Specified the character encoding in the html rule.

Thanks,

Sri

---

<div class="post-metadata">

**Author:** ![MarissaRogers](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/marissarogers/32/22427_2.png) [@MarissaRogers](https://forums.pega.com/u/MarissaRogers)\
**Post date:** [September 16, 2020, 2:05pm UTC](https://forums.pega.com/t/export-webpage-as-a-pdf/551/3 "2020-09-16T14:05:59Z")

</div>

Thank you for sharing your solution! I have marked this reply as such.

In the future, to mark a reply as a solution, you can click on the ellipses on that reply \> then choose Accepted Solution.

Thanks!

Marissa | Senior Moderator | Pega Collaboration Center
