ppr-list-digest volume 1, number 177, message 2

Note: please don't spam any of the e-mail addresses which you see here. Follow this link if you want some addresses to misuse.


From: "David S. Chappell" <David.Chappell@mail.trincoll.edu>
Date: Mon, 25 Oct 1999 14:29:49 -0400
Subject: Re: PPR: DSC parsing problem?

At 09:28 AM 10/19/99 -0400, you wrote:

>PPR won't print this file because in the %%DocumentNeededResources:
>line, it has a font (atend) argument.  It seems to be having a problem
>parsing the fact that font (atend) means look for the fonts at the end,
>since (atend) is usually used right after %%DocumentNeededResources:. 
>Am I right?  I've looked over the DSC spec and I'm not sure if you can
>specify (atend) for a singular resource.

You can't.  You can only specify atend for an entire comment.  In this case
it is the "%%DocumentNeededResources:" comment.  Once it has said "font:",
it is too late, what comes next is the name of a resource of type "font:".
By the way, there shouldn't be a colon after the word "font" either.

I think the confusion arose in the author's mind because older versions of
the DSC spec had a comment called "%%DocumentNeededFonts:" which could be
defered to the trailer without defering, say, "%%DocumentNeededProcsets:".
The "%%DocumentNeededResources:" comment combines "%%DocumentNeededFonts:",
"%%DocumentNeededProcsets:" and several others.  Since the parsing rules
require all but one "%%DocumentNeededResources:" comment to be ignored, it
is not possible to split it up like this author is trying to do.  It is
amusing that the author is appearently working for Adobe.

>What to do about this?

There are three possibilities:

1) Make an editps filter (a Perl script which fixes the file).  This script
would have to remove the offending lines and replace them with one that
read "%%DocumentNeededResources: (atend)".  However, it probably won't work
for other PDF files because the "%%Creator:" line doesn't truly reflect the
name of the program which generated the PostScript.

2) Invoke the program ppr with the -P trustme switch.  This means, "If you
can't download all the resources I wan't, just go ahead and print me
anyway.  I will do my best.)

3) Do "mkdir /var/spool/ppr/cache/font:".  touch
/var/spool/ppr/cache/font:/atend" to make an empty "font:" (whatever that
is) called "atend".  PPR will feel that it is ready to download this
mysterious resource.  (After all, hat is what the comments, as written, ask
it to do.)


================================================================
David Chappell		David.Chappell@Mail.Trincoll.Edu
Computing Center		PostMaster@Mail.Trincoll.Edu
Trinity College			(860) 297-2114
Hartford, Connecticut  06106