On Tue, 6 Oct 2026 03:10:25 GMT, Reuben Roessler <[email protected]> wrote:
>> CUPS on Unix has a [hidden option >> available](https://www.cups.org/doc/options.html#COPIES) for supporting >> collated copies. This fix enables support for this through the >> `SheetCollate.COLLATED` request attribute for the `UnixPrintJob` internal >> class. >> >> I have prepared a simple [development >> repository](https://github.com/rroessler/openjdk-collation) to confirm that >> this feature patch appends the correct option to the `lpr` command used >> internally. >> >> --------- >> - [x] I confirm that I make this contribution in accordance with the >> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). > > Reuben Roessler has updated the pull request incrementally with one > additional commit since the last revision: > > Enable debug output for PSPrinterJob In all cases, with and without "/Collate true" I am getting How many pages were printed - 2 How many copies were printed - 1 Whether the copies were collated - No If the content is correct - No The PSPrinterJob>> output for the lpr command UnixPrintJob>> execCmd /usr/bin/lpr -PAltaLink-B8145 -JJava Printing -#2 -h -o collate=true /tmp/javaprint15117413932495451949.ps lpoptions -p AltaLink-B8145 -l PageSize/Page Size: Custom.WIDTHxHEIGHT *Letter A4 11x17 A3 A5 B5 Env10 EnvC5 EnvDL EnvISOB5 EnvMonarch Executive Legal Resolution/Resolution: 75x75dpi 150x150dpi *300x300dpi 600x300dpi 600x600dpi ColorModel/Color Mode: *CMY CMY+K CMYK Gray Quality/Quality: *Default Draft Normal Presentation MediaType/Media Type: *Plain Bond Glossy Premium QuickDryGlossy QuickDryTransparency Transparency InputSlot/Media Source: *Tray Banner DesktopCSF Envelope Manual Manual/Manual Feed of Paper: True *False Duplex/Double-Sided Printing: *Default DuplexNoTumble DuplexTumble None IntensityRendering/Intensity Rendering: FloydSteinberg *Halftones Printer RasterGraphicsQuality/Raster Graphics Quality: *Default Draft High ControlPanel Postcards/Use Postcards: True *False Model/Model: hpdj hpdj310 hpdj320 hpdj340 hpdj400 hpdj500 hpdj500c hpdj510 hpdj520 hpdj540 hpdj550c hpdj560c hpdj600 hpdj660c hpdj670c hpdj680c hpdj690c hpdj850c hpdj855c hpdj870c hpdj890c hpdj970cDuplex hpdj1120c hpdjplus hpdjportable olivetti *unspec unspecold DitherPPI/Dithering PPI: 25 30 40 50 *60 70 80 90 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 260 270 280 290 300 310 320 330 340 350 360 370 380 390 400 410 420 430 440 450 460 470 480 490 500 510 520 530 540 550 560 570 580 590 600 Custom.INTEGER MemLimit/Memory Limit (Bytes): 10000 *8388608 50000000 100000000 150000000 200000000 250000000 300000000 350000000 400000000 450000000 500000000 550000000 600000000 650000000 700000000 750000000 800000000 850000000 900000000 950000000 1000000000 1050000000 1100000000 1150000000 1200000000 1250000000 1300000000 1350000000 1400000000 1450000000 1500000000 1550000000 1600000000 1650000000 1700000000 1750000000 1800000000 1850000000 1900000000 1950000000 2000000000 2050000000 2100000000 2147483647 Custom.INTEGER ConfigureEveryPage/Configure Every Page: *No Yes CompressionMethod/Compression Method: *Default CRDRE DRC RLE TIFF Unencoded LeadingEdge/Leading Edge: *Default LongLeft LongRight ShortBottom ShortTop BlackLevels/Black Levels: *Default 2 3 4 NoBlack CMYLevels/CMY Levels: *Default 2 3 4 NoCMY Depletion/Ink Reduction: *Default 25 25Gamma 50 50Gamma No Passes/Print Head Passes per Line: *Default 1 2 4 OnlyCRD/Generate only PCL with 'Configure Raster Data': True *False PCL3GUI/PCL3GUI Language Mode: True *False cat /etc/cups/ppd/<PRINTER_NAME> is giving a long output which is probably not right to paste here but I could not find any Collation/Collate string there..Any particular info is needed? ------------- PR Comment: https://git.openjdk.org/jdk/pull/33023#issuecomment-6061862566
