Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

PDF from PostScript with run command

Avatar

Not applicable

Greetings.

Consider the following, 3-line PostScript file:

%!

(c:\\alphabet.ps) run

%  End of file.

When using the PDF Generator's Create PDF service using the very same PostScript file (via Administration Console), the corresponding log file yields the following:

%%[ Error: undefinedfilename; OffendingCommand: run ]%%

Stack:

(c:\\alphabet.ps)

%%[ Flushing: rest of job (to end-of-file) will be ignored ]%%

%%[ Warning: PostScript error. No PDF file produced. ] %%

Also consider that the alphabet.ps file is, in fact, in the server's C drive, and is thus in the correct location.

Several Google searches reveal to me that this is actually a fairly common issue. Users running Acrobat Distiller require the /F switch in order to access external files via PostScript's run command.

Is there such a switch (or equivalent) for PDF Generator? Is there any sort of way that I can force PDF Generator to accept run commands?

Thank you in advance.

1 Reply

Avatar

Level 3

You could try using the more usually correct PostScript form (c:/alphabet.ps). Also try using a subfolder, the root drive may be especially protected. No idea about the /F switch, etc, sorry - just general PostScript advice. It is best to rework to avoid filesystem access completely.