[softwarelist] Re: OPro script prpagew() (RISC OS)

  • From: Gavin Crawford <gav@xxxxxxxxxxxxxx>
  • To: davidpilling@xxxxxxxxxxxxx
  • Date: Tue, 16 Aug 2016 11:07:20 +0100

In message <4da032a4-dade-54ea-23ff-434bf213db27@xxxxxxxxxxxxxxxxxxx>
          David Pilling <david@xxxxxxxxxxxxxxxxxxx> wrote:

One problem is that the event PRSTARTPAPER is issued at the start of the
outside loop.

Seems no doubt that immediately after PRSTARTPAPER these functions do
not have the information needed to return successfully.

(a bit more complex, the first time they'll probably work because memory
is set to zero, but the next time memory will be set 1 over the end
value of the page loop, and guaranteed to be wrong).

The event you require is:

EVENT_PRSTARTPAGE

At which point the page should be set up.

That does the trick! Thank you. I'd tried checking on some other print 
events as well, but hadn't checked it with EVENT_PRSTARTPAGE.

I'm adding some extra functionality into my (as yet unreleased) 
PDFinfo applet, which at the moment adds document info into the 
PostScript stream so that Title, Author, Subject and keywords are 
embedded into a PDF. I'm now wanting to add trim and bleed info, hence 
the page size functions.

I'm not 100% sure that these are the functions I actually need. I will 
have to try and work through one of the imposition scripts to get my 
head round the functions I need to give me the overall bounding box of 
the imposed page(s) together with the bounding box of the bleed area. 
So in other words, the box that the crop marks are drawn around and 
the bleed area outside of that (if there is one).

It's been many years since I last attempted to understand the imposit 
scripts and even now I feel a nervous twitch developing in a Chief 
Inspector Dreyfus manner (from Pink Panther films) ;-) ;-)

Conclusion - bug in the docs - page 77 of the handy Script Language
reference guide in my desk.

Take out big red highlighter "CURSE HIM, CURSE HIM".

Highlighter equipped and duly marked. I will also make a note in the 
StrongHelp version.

Thanks David.

Gavin.
To unsubscribe or subscribe goto: //www.freelists.org/list/davidpilling

Other related posts: