[riscos-printing] Re: How does a dumper know the page size?

  • From: Martin Wuerthner <lists@xxxxxxxxxxxxxxx>
  • To: riscos-printing@xxxxxxxxxxxxx
  • Date: Tue, 1 Feb 2022 18:17:19 +0100

David Higton <dave@xxxxxxxxxxxxxxxx> wrote:

IPP PWG-Raster and Uniraster both require to be sent data for the full
page, AFAICS.  Experiments with my dumper, with copious logging, show that
the driver only sends data for part of the page.  That's OK if the dumper
knows the page size; it can fill in the rest of each line, and all the
blank lines, with white - but only if it knows the page size. It must also
send the page size in the page header.

When your dumper is called, there is a print job running, and you can
enquire about that print job using standard PDriver calls. For instance,
PDriver_PageSize to read the page size.

I can't see anywhere in the data passed to the dumper entry that the page
size exists.  Have I missed something?

Yes, the driver only sends data that is not already readily available in the
global state of the printing system.

Martin
-- 
------------------------------------------------------------------------
Martin Wuerthner           MW Software        http://www.mw-software.com
------------------------------------------------------------------------
------------------------------------------------------------
    To change, suspend or cancel your subscription go to
       //www.freelists.org/list/riscos-printing
------------------------------------------------------------

Other related posts: