GhostScript temporary PostScript file

Hi,

I'm using background auto processing and am adding GhostScript for the first time, using psfmtdrv ... -distill -pdfusegs.

While GhostScript is running, it places a PostScript file the PDF output folder. The file is only there for a few moments while the PDF is being created, but I'd like the PS file to NOT show up there at all. Per the GhostScript doc, the location for its temporary files is dictated by the environment "TMPDIR," but setting this didn't seem to have any effect on the PS file.

Is there any way to keep the PS from appearing in the output folder?

Thanks in advance,

LaRae Chasteen

Municode

Parents
  • Hi LaRae,

    The psfmtdrv process to create a PDF file is a two-step process. It first creates a PS file in the destination folder and then makes a call to GS (in your case) to distill the PS to a PDF file in the same destination folder (and then the PS file is removed if the distilling was successful).

    There is currently no option available to create the "temporary" PS file in a different folder than the destination folder for the PDF. Instead you will need to create a "script" to run in background auto-processing which does the psfmtdrv command to create the PDF in a "temporary" folder and then moves it to the desired final location.

    Another option might be to "enhance" whatever process is monitoring your PDF destination folder to ignore PS files, if that is possible.

    Jonathan Dagresta
    RWS Group/
    XPP Development

Reply
  • Hi LaRae,

    The psfmtdrv process to create a PDF file is a two-step process. It first creates a PS file in the destination folder and then makes a call to GS (in your case) to distill the PS to a PDF file in the same destination folder (and then the PS file is removed if the distilling was successful).

    There is currently no option available to create the "temporary" PS file in a different folder than the destination folder for the PDF. Instead you will need to create a "script" to run in background auto-processing which does the psfmtdrv command to create the PDF in a "temporary" folder and then moves it to the desired final location.

    Another option might be to "enhance" whatever process is monitoring your PDF destination folder to ignore PS files, if that is possible.

    Jonathan Dagresta
    RWS Group/
    XPP Development

Children