From: Michael S. <ms...@ms...> - 2024-07-31 17:15:35
|
Solomon, > On Jul 31, 2024, at 10:42 AM, Solomon Peachy via Gimp-print-devel <gim...@li...> wrote: > > On Wed, Jul 31, 2024 at 04:29:42AM +0300, ValdikSS via Gimp-print-devel wrote: >> Citizen CX-02 PPD file contains the following sizes, using what it seems >> should have been PageRegion/ImageableArea for whatever reason (the >> dimensions are slightly larger than the described page sizes): > > I'm having a very hard time following what you pasted here, so I'll > extract the definitions for one size from the PPD: > > *PageSize B7/3.5x5: "<</PageSize[261.120 460.800]/ImagingBBox null>>setpagedevice" > *ImageableArea B7/3.5x5: "0.000 44.640 261.120 416.160" > *PaperDimension B7/3.5x5: "261.120 460.800" > > PageSize and PaperDimension are identical, and ImageableArea is smaller > because of how the printer works. > > ....This appears to be perfectly fine and is completely compliant with > PPD-based printing flows, which one would expect for something designed > around PPDs. Actually, if you ran cupstestppd against the PPD file it will complain about the dimensions not matching the size (3.5x5 inches should be 252x360 points). >> The software which relies on standard sizes doesn't show up regular >> page size names. > > There is no such thing as a "standard size" from the PPD's perspective; > they enumerate what they support (using an arbitrary identifier and > UI-visible name) and provide the appropriate dimensions. Actually, many sizes *are* standard and defined in the Adobe PPD specification. It is just that a lot of photo printers also support other sizes that Adobe never standardized... :/ >> When the printer is shared in CUPS over IPP, IPP reports only a set of >> custom page sizes instead of a standard sizes, and some clients can't >> handle that. This seems like a bug. | > > Again, what do you mean by "standard sizes"? The printer supports what > it supports, nothing more. For example. the CX-02's native resolution > at 300dpi is 1844x1240, which equates to 15.37x10.33 cm, and in the PPD > we assign it the ID of "w288h432" and UI-visible name of "4x6" for a > "standard" 4x6" or 10x15cm print. The issue is that CUPS will take the paper dimensions and convert *those* to the corresponding PWG media size name. So 261.12x460.8 points from the previous example for the B7 size gets converted to "custom_b7_92.12x162.56mm" instead of "oe_photo-l_3.5x5in" ("L" being the photo size corresponding to 3.5x5 inches). ________________________ Michael Sweet |