Skip to main content
Participant
March 4, 2010
Question

How to override the postscript pdfmark code to use Distiller Settings?

  • March 4, 2010
  • 2 replies
  • 1831 views

Hi All

Does anybody know how to override the postscript pdfmark code to use Distiller Settings?

I have a pdfmark code that calls the multiple postscript files to generate the pdf. Whereas if I call that "pdfmark" code file using the command line Acrodist.exe, pdf generation fails incase of warnings/errors. Whereas if I run the postscript files individually, pdf doesnt fail. So, probably I think its a good idea to force pdfmark to use the default Distiller settings and still include the pdf page even if there is a error.

I would really appreciate if someone know the code which we can use to force to use the Distiller settings.

I couldnt find any correct code from pdfmark reference guide.

http://www.adobe.com/devnet/acrobat/pdfs/pdfmarkReference_v9.pdf

Regards

Hari

This topic has been closed for replies.

2 replies

Participating Frequently
March 6, 2010

Could you please post the error messages you got from distiller?

Helge

Participant
March 7, 2010

Error message is,

%% Caused the following error:

%%[ Error: typecheck; OffendingCommand: xshow ]%%

Stack:
49

(à üÀ üÀ üÀ üÀ üÀ üÀ ü?à ø?ð ø ø?ð ÿÿà ÿÿÀ ÿÿ€ ÿÿ€ þÿ€ þÿ€ þÿÀ þÿÀ üà üð ü?ø?ø?ÿÿø ÿÿð ÿÿà ÿÿÀ ÿÿ€ øà üÀ üÀ üÀ üÀ üÀ üÀ ü?à ø?ð ø ø?ð ÿÿà ÿÿÀ ÿÿ€ ÿÿ þÿ€ þÿ€ þÿ€ þÿÀ þÿÀ üà üð ü?ø?ø?ÿÿø ÿÿð ÿÿà ÿÿÀ ÿÿ€%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Participating Frequently
March 7, 2010

The error message denotes an error in the PostScript file currently being processed.

As your script is designed to log the name of the PS file being processed, perhaps post

the offending PS file (via e-mail; see my profile).

Helge

Participant
March 4, 2010

Here is my code.

/RunDir {                        % Uses PathName variable on the operand stack
    { /mysave save def           % Performs a save before running the PS file
        dup = flush              % Shows name of PS file being run
        RunFile                  % Calls built in Distiller procedure
        clear cleardictstack     % Cleans up after PS file
        mysave restore           % Restores save level
    }
    255 string
    filenameforall
} def

/prun { /mysave save def         % Performs a save before running the PS file
   dup = flush                   % Shows name of PS file being run

   RunFile                       % Calls built in Distiller procedure
     clear cleardictstack        % Cleans up after PS file
      mysave restore             % Restores save level
} def

[ /Dest /Disclaimer /DEST pdfmark
(C:\\/Report\\/PSFiles\\/Disclaimer.ps) prun
[ /Dest /30_20100303_2001018_R01A_0003FC /DEST pdfmark
(C:\\/Report\\/Example.ps) prun
[ /Count 2 /Page 1 /Title (Reports) /OUT pdfmark
[ /Action /GoTo /Dest /Disclaimer /Title (Disclaimer) /OUT pdfmark
[ /Action /GoTo /Dest /Example /Title (- Example Report) /OUT pdfmark
[ /Title (Prime Brokerage Reports)
/Author (me@me.com)
/Subject (Reports)
/Creator (Me)
/DOCINFO
pdfmark