[cups.general] Querying paper size dimensions and margins from IPP printers

Till Kamppeter till.kamppeter at gmail.com
Mon Jan 28 09:12:59 PST 2013


On 01/28/2013 05:35 PM, Michael Sweet wrote:
>> Is the only way to associate the paper size names, like "iso_a4_210x297mm", with the dimensions in the "media-col-database" via the size stated in the paper size name?
>
>
> Generally yes, although some printers also support the media-size-name member attribute that provides the PWG media name for the dimensional size.  Also, roll and custom media sizes are reported using rangeOfInteger (IPP_TAG_RANGE) values instead of integers (IPP_TAG_INTEGER).
>
> There is also private API in libcups to map to/from PWG names, PPD names, and dimensional sizes.  We use this internally in CUPS to support media-col for media selection.

As this is a private API I have to copy this code if I want to use it in 
cups-filters?

Another question:

I am doing the current tests with a networked inkjet printer, it ntakes 
the following input formats:

image/urf
application/vnd.hp-PCL
image/jpeg
application/octet-stream

I want to print to this printer without need of a printer-specific 
driver, now application/vnd.hp-PCL is most probably HP's inkjet PCL 
which requires the hpcups driver of HPLIP to print in the full quality 
of the printer. image/jpeg is the standard JPG format, which can 
represent only single-page documents.

If I send a multi-page document as a sequence of JPG images I will 
probably get problems like the printer considering it as many jobs and 
when I press the cancel button on the printer's front panel only the 
current page gets canceled and duplex will not work. Or can I send the 
sequence of JPGs as a multi-document job and I get a correctly 
duplex-printed output and I can cancel the whole thing with one button 
press?

If the image/urf format multi-page? Is it documented somewhere?

What does the following mean:

<key>urf-supported</key>
<array>
<string>CP1</string>
<string>MT1-2-8-9-10-11</string>
<string>OB9</string>
<string>OFU0</string>
<string>PQ3-4-5</string>
<string>RS300-600</string>
<string>SRGB24</string>
<string>W8</string>
<string>DM3</string>
<string>IS1-2</string>
</array>

    Till





More information about the cups mailing list