Temp files leaved behind after printing.

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

cmarsura
User
Posts: 91
Joined: Fri Jun 15, 2007 9:57 am

Temp files leaved behind after printing.

Post by cmarsura »

HI,
I noted that the PDFXChange Viewer leaves behind in the temp folder some files that are removed only after reboot.
Printing the same pdf (see included) with same version of viewer (2.5.201) on different Windows 7 SP1 32Bit machines gives different result: on some machine the temp files are created and on some other no. Why ?

This problem is very nasty because if I go to print several files the temp folder become cluttered of files that are removed only on reboot.

Thanks.

Carlo Marsura
You do not have the required permissions to view the files attached to this post.
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: Temp files leaved behind after printing.

Post by Stefan - PDF-XChange »

Hello Carlo,

Are you printing through the PDF XChange printing drivers? Could you give us a sample file name?
Also - are there any particular settings that differ between the two types of machines - those that do save the .tmp files and those that do not?

Best,
Stefan
cmarsura
User
Posts: 91
Joined: Fri Jun 15, 2007 9:57 am

Re: Temp files leaved behind after printing.

Post by cmarsura »

The temp files appears with whatever printer you use (MS XPS Printer, PDF XChange, Epson PX660, ...), I used the PDF XChange printer only to create the pdf files.
In the included temp.zip you can find three files:
- TEST2.pdf a PDF/A that causes creation of temp files;
- Windows Mail.pdf that is not a PDF/A file and does not cause creation of temp files;
- Windows Mail.mht the mht file I used to generate the pdf above;

After further investigation I found that temp files are created also in Vista and XP machines: the temp files are created if you select "Auto" for the 'Print text as curves' combo in the 'Advanced...' of PDF-XChange Viewer print dialog.
The printing of TEST2.pdf creates eight temp files that incidentally corresponds to the number of incorporated fonts in the pdf.

Carlo Marsura
You do not have the required permissions to view the files attached to this post.
User avatar
Lzcat - Tracker Supp
Site Admin
Posts: 677
Joined: Thu Jun 28, 2007 8:42 am

Re: Temp files leaved behind after printing.

Post by Lzcat - Tracker Supp »

Hi Carlo.
As you already see theese files contains embedded fonts used during printing. This is because there is no other way to pass embedded font to printer - we must create a file with a font and add it as a temporary font in the sytem. Unfortunately in most cases we cannot delete this file immediately after printing because someone may still use it, so we add this file to system list for files which will be deleted after reboot to finaly remove them.
Is this a very big problem? I'm not sure that we can find an absolutely correct solution when delete these files. All we can do is to remember a list of such files and try to delete them later, but again this may be not successful if someone else still is still using them (printer driver, for example).
Victor
Tracker Software
Project manager

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
cmarsura
User
Posts: 91
Joined: Fri Jun 15, 2007 9:57 am

Re: Temp files leaved behind after printing.

Post by cmarsura »

Hi Lzcat.
Printing several PDF/A files containing many incorporated fonts may produce a somewhat bloated temp folder.
Trying to delete them at program exit may be a tentative.
I have seen that also Acrobat Reader creates temporary fonts but it delete them when the pdf is closed.

From my part I will try to produce and print non PDF/A files so to keep low the temp font creation rate.

Best
Carlo
User avatar
Paul - PDF-XChange
Site Admin
Posts: 7371
Joined: Wed Mar 25, 2009 10:37 pm

Re: Temp files leaved behind after printing.

Post by Paul - PDF-XChange »

:)

Do let us know if you need anything more here that we can actually do for you.
Best regards

Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com