# Very Slow PDF Generation - System Wide

**URL:** <https://clarionhub.com/t/very-slow-pdf-generation-system-wide/7605>\
**Category:** questions\
**Tags:** report, pdf\
**Created:** [October 25, 2024, 1:13pm UTC](https://clarionhub.com/t/very-slow-pdf-generation-system-wide/7605 "2024-10-25T13:13:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![donridley](https://clarionhub.com/user_avatar/clarionhub.com/donridley/32/1459_2.png) [@donridley](https://clarionhub.com/u/donridley)\
**Post date:** [October 25, 2024, 1:13pm UTC](https://clarionhub.com/t/very-slow-pdf-generation-system-wide/7605/1 "2024-10-25T13:13:19Z")

</div>

Hello All,

So I am experiencing something I have never encountered before.

Out of the blue, I am having issues generating PDF's with Clarion created applications.

SV example apps, Capesoft Premiere, and my apps are all having issues. The process stage of report generation is slow and, when complete, the PDF never displays.

Do not have the first clue ao far what could have happened to cause this.

Any help is greatly appreciated!

---

<div class="post-metadata">

**Author:** ![Marius\_Nel](https://clarionhub.com/user_avatar/clarionhub.com/marius_nel/32/2309_2.png) [@Marius\_Nel](https://clarionhub.com/u/Marius_Nel)\
**Post date:** [October 25, 2024, 1:19pm UTC](https://clarionhub.com/t/very-slow-pdf-generation-system-wide/7605/2 "2024-10-25T13:19:33Z")

</div>

Don,

Maybe the wrong question but did you check the temp folder?

---

<div class="post-metadata">

**Author:** ![donridley](https://clarionhub.com/user_avatar/clarionhub.com/donridley/32/1459_2.png) [@donridley](https://clarionhub.com/u/donridley)\
**Post date:** [October 25, 2024, 1:32pm UTC](https://clarionhub.com/t/very-slow-pdf-generation-system-wide/7605/3 "2024-10-25T13:32:20Z")

</div>

Actually Marius you are right on the money.

Deleted everything in the Windows temp folder and everything is working correctly now.

Now I am curious as to how the contents of the temp folder affect PDF generation.

---

<div class="post-metadata">

**Author:** ![jslarve](https://clarionhub.com/letter_avatar_proxy/v4/letter/j/e480ec/32.png) [@jslarve](https://clarionhub.com/u/jslarve)\
**Post date:** [October 25, 2024, 1:50pm UTC](https://clarionhub.com/t/very-slow-pdf-generation-system-wide/7605/4 "2024-10-25T13:50:54Z")

</div>

One thing that might also be slowing you down is the slow deleting of files when there are a lot of pages.

> [@Test if Close(Report) is SLOW on your System? – Mine 100x slower than C6](https://clarionhub.com/t/test-if-close-report-is-slow-on-your-system-mine-100x-slower-than-c6/4491/2):
>
> I did show this on the Wednesday [Clarion Live Open Webinar 9/22/21](https://www.youtube.com/watch?v=eYorFmVk_68&t=4m30s) at 4:30. Test window looks like below. You can see on my system API delete is about 90x faster at 1000 pages. Click “1. RTL Normal” to test time to Close(Report) which shows in the Normal column. Click “2. API Delete” and it will run code like this that deletes all preview files before Close. ReportCloseTempDeleteAPI(PreviewQ) CLOSE(Report) ReportCloseTempDeleteAPI PROCEDURE(QUEUE RptPreviewQ) QX LONG,AUTO c…

---

<div class="post-metadata">

**Author:** ![Johan\_de\_Klerk](https://clarionhub.com/letter_avatar_proxy/v4/letter/j/f9ae1b/32.png) [@Johan\_de\_Klerk](https://clarionhub.com/u/Johan_de_Klerk)\
**Post date:** [October 25, 2024, 1:56pm UTC](https://clarionhub.com/t/very-slow-pdf-generation-system-wide/7605/5 "2024-10-25T13:56:16Z")

</div>

Hi Donald,  
The temp files for the report are created in the temp folder.  
Carl Barnes have a utility that cleans those.  
His description:  
Clarion Reports generate WMF files named CLA###.TMP (.WMF in 11.1) in the current User Windows Temp folder. A crash, bad code or a process shutdown can leave TMP files behind. A Temp folder full of these can cause problems with preview.

> **[GitHub - CarlTBarnes/Temp-Clean-Clarion: Temp folder purge of Report Preview files...](https://github.com/CarlTBarnes/Temp-Clean-Clarion)**
>
> Temp folder purge of Report Preview files including CPCS and Tracker temp files

Regards  
Johan de Klerk

---

<div class="post-metadata">

**Author:** ![CarlBarnes](https://clarionhub.com/user_avatar/clarionhub.com/carlbarnes/32/1859_2.png) [@CarlBarnes](https://clarionhub.com/u/CarlBarnes)\
**Post date:** [October 25, 2024, 3:04pm UTC](https://clarionhub.com/t/very-slow-pdf-generation-system-wide/7605/6 "2024-10-25T15:04:00Z")

</div>

As mentioned check if your %TEMP% folder has 1000s files, especially CLA\*.\*

This topic had some discussion

> [@When in Doubt, empty the %temp% folder](https://clarionhub.com/t/when-in-doubt-empty-the-temp-folder/7086):
>
> In the Clarion Connect webinar yesterday, Kurt had a problem with reports, specifically the speed of the report editor going really slow. Peter suggested cleaning out the %temp% folder. Cunningly, that fixed the problem. Coincidentally I was struggling with a TeamViewer problem yesterday (“Connection Blocked” on outgoing connections, but perfectly ok on incoming connections). I hadn’t cleaned %temp% in a long time, so did it (just as a good habit) and wouldn’t you know, but TeamViewer starts wo…
