# PDF auto generated

**URL:** <https://forum.inductiveautomation.com/t/pdf-auto-generated/7507>\
**Category:** Ignition\
**Created:** [November 1, 2013, 1:20am UTC](https://forum.inductiveautomation.com/t/pdf-auto-generated/7507 "2013-11-01T01:20:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![trich1177](https://avatars.discourse-cdn.com/v4/letter/t/d07c76/32.png) [@trich1177](https://forum.inductiveautomation.com/u/trich1177)\
**Post date:** [November 1, 2013, 1:20am UTC](https://forum.inductiveautomation.com/t/pdf-auto-generated/7507/1 "2013-11-01T01:20:07Z")

</div>

Can the report module automatically generate PDF’s with identifying name such as date time and monitor how many files are in a folder to allow them to be deleted after a length of time?

---

<div class="post-metadata">

**Author:** ![greg.simpson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/greg.simpson/32/3135_2.png) [@greg.simpson](https://forum.inductiveautomation.com/u/greg.simpson)\
**Post date:** [November 27, 2013, 5:58pm UTC](https://forum.inductiveautomation.com/t/pdf-auto-generated/7507/2 "2013-11-27T17:58:50Z")

</div>

Creating a unique name is easy. You can place a timestamp into the file name to make it unique. You will just need to make the reference in the filepath. To check the number of files and delete some of them could be accomplished with a batch file. You can create the batch file and run it with a system.util.execute. I found this with a google search

[stackoverflow.com/questions/5105 … han-n-days](http://stackoverflow.com/questions/51054/batch-file-to-delete-files-older-than-n-days)

You will need to have a client open on the report to do this automatically. Here is a link to another forum post that goes over the emailing of reports. You just need to modify your script to save the file versus email it. There are some great tips to look at though

[inductiveautomation.com/forum/vi … &sk=t&sd=a](http://inductiveautomation.com/forum/viewtopic.php?f=70&t=7323&start=0&st=0&sk=t&sd=a)
