Viewing PDF from CVTSPLPDF

Issues caused by Adobe Reader 10 and later.

There are reports that Adobe Reader 10 (and later) is slow opening files. This is not restricted to
PDFs created by CoolSpools, but is a general issue with Adobe Reader 10 (or later).
Some reports suggest that the problem is particularly severe on Windows 7 (and later) and when
the file is stored on a network.
File open times can be improved by switching off "Enable protected mode at startup" in the
preferences, but file open times still seem slow compared to previous versions even without
protected mode enabled.
This slowness in opening files is causing problems when the CVTSPLPDF...TOSTMF(*VIEW)
and TOSTMF(*PRINT) options are used. Specifically, the STRPCCMD command used to start up
Adobe Reader on the PC is returning control to CoolSpools prematurely, before the PDF file has
been opened, and CoolSpools is deleting the file before it has been opened, causing Adobe
Reader (eventually) to display a "File not found" error.
Where the file is being automatically deleted, it is possible to control the amount of time that
CoolSpools gives Adobe Reader to open the file before deleting it by means of an environment
variable CS_PDF_ADOBE_PAUSE_SECONDS.

To create the environment variable, on the iSeroes Command line enter:
ADDENVVAR ENVVAR('CS_PDF_ADOBE_PAUSE_SECONDS') VALUE('30') LEVEL(*SYS)
This will delay the deleteion of the file for 30 seconds.
The CVTSPLPDF will appear 'busy' for 30 seconds while the PDF is displayed.

You may be able to determine a reasonable amount of time to allow Adobe Reader to open the
file, in your environment, which will minimize the risk of the file being deleted before it is opened.
The environment variable can be deleted / amended ny using WRKENVVAR command.