# How can I export table data in pdf format in perspective?

**URL:** <https://forum.inductiveautomation.com/t/how-can-i-export-table-data-in-pdf-format-in-perspective/86237>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [February 23, 2024, 7:16am UTC](https://forum.inductiveautomation.com/t/how-can-i-export-table-data-in-pdf-format-in-perspective/86237 "2024-02-23T07:16:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Disha\_Anand](https://avatars.discourse-cdn.com/v4/letter/d/b38774/32.png) [@Disha\_Anand](https://forum.inductiveautomation.com/u/Disha_Anand)\
**Post date:** [February 23, 2024, 7:16am UTC](https://forum.inductiveautomation.com/t/how-can-i-export-table-data-in-pdf-format-in-perspective/86237/1 "2024-02-23T07:16:17Z")

</div>

I currently have my data in html format while it gets dowloaded.But how can I get it in PDF format while downloading it.  
Here is my code to download the table data in html format.  
table = self.parent.parent.getChild(Table).props.data  
excelstr = system.dataset.dataSetToExcel(True,[table])  
excelbytes = system.dataset.dataSetToHTML(1, table, "")  
fileName = aaa.html  
system.perspective.download(fileName, excelbytes)

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [February 23, 2024, 7:25am UTC](https://forum.inductiveautomation.com/t/how-can-i-export-table-data-in-pdf-format-in-perspective/86237/2 "2024-02-23T07:25:23Z")

</div>

Welcome to the forum.

Please see [Wiki - how to post code on this forum](https://forum.inductiveautomation.com/t/wiki-how-to-post-code-on-this-forum/77831). It's particularly important for Python scripts to preserve indentation. There's a pencil icon link under your post so you can edit to fix it.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 23, 2024, 12:42pm UTC](https://forum.inductiveautomation.com/t/how-can-i-export-table-data-in-pdf-format-in-perspective/86237/3 "2024-02-23T12:42:52Z")

</div>

That's what the Reporting module does. There's no other supported way to make PDFs.

---

<div class="post-metadata">

**Author:** ![Disha\_Anand](https://avatars.discourse-cdn.com/v4/letter/d/b38774/32.png) [@Disha\_Anand](https://forum.inductiveautomation.com/u/Disha_Anand)\
**Post date:** [February 24, 2024, 12:35pm UTC](https://forum.inductiveautomation.com/t/how-can-i-export-table-data-in-pdf-format-in-perspective/86237/4 "2024-02-24T12:35:52Z")

</div>

Got it.Thanks for your response @pturmel
