Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

PDF from PostScript with run command

Avatar

Former Community Member

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.