[comp.lang.postscript] %%[ Error: undefined; OffendingCommand: BEGINPAGE ]%%

greid@adobe.com (Glenn Reid) (05/18/89)

A few have you have reported problems printing files retrieved from the
Adobe PostScript File Server.  The symptom were either no output (if
you don't have a mechanism for catching PS errors) or the "undefined"
error on "BEGINPAGE".  I had trouble reproducing this, but I have
finally discovered what the problem is.

PROBLEM:
    You have an old version of our TranScript spooling software that
    does page reversal incorrectly.  The definitions for "BEGINPAGE"
    are not visible to the program because the "Setup" section of the
    document gets reversed to the end of the document wiht Page 1,
    which is a bug.

SOLUTION:
    The easiest thing is to add a single line to the beginning of
    the file that contains just %! (this is the same as editing out
    the "PS-Adobe-2.0" from the first line).  This will cause the
    TranScript program to believe that it is not allowed to reverse
    the pages, and the problem will go away.

    More complicated alternatives are either to turn off page reversal
    for the printer (see TranScript documentation) or to edit the
    PostScript language file to allow page reversal to work correctly.
    This means either moving %%EndProlog after the %%EndSetup comment
    (which is not strictly a good idea, but will work around the
    problem) or getting rid of all instances of either "PROLOGUE begin"
    or the corresponding calls to "end".  This still leaves the
    encoding vector at the end, in the wrong place, but I think most
    documents should print OK.  You might see "yen" symbols instead of
    bullets or other minor quirks.  It might be easier just to run
    "psrev" to reverse the pages and then hand-edit the setup section
    back to the beginning.

    Of course, you could always upgrade your version of TranScript, too.
    Send mail to "psmith@adobe" to do that, or call 1-800-344-8335.

Thanks to all of you who point it out, and sorry about the problems.

Glenn Reid
Adobe Systems