[cups.general] Setting custom paper size

Bill Moseley moseley at hank.org
Mon Feb 12 14:40:53 PST 2007


On Mon, Feb 12, 2007 at 05:02:47PM -0500, Kurt Pfeifle wrote:
> Did you tell what actual media sizes you do expect to use with
> this?? And does your printer support these?

I tried a few options but without luck.

$ lpoptions -d Stylus870 -l | grep Size 
PageSize/Media Size: *Letter Legal Executive Postcard CD5Inch CD3Inch w216h360 w288h432 w324h495 w360h504 w360h576 w432h576 c8x10 Statement w576h864 A4 A5 A6 A7 A8 w609h864 ISOB5 ISOB6 ISOB7 ISOB8 B5 B6 B7 B8 C5 w354h918 C6 DL w229h459 C7 C8 w612h936 w535h697 w569h731 w348h527 w365h561 w391h612 w442h663 w314h504 w314h513 cw365h561 w283h425 w283h420 w420h567 w340h666 w255h581 COM10 w315h414 Monarch w288h387 w288h504 w253h337 w244h155 w283h566 w612h935 Custom



> 
> Try one of these commands then:
> 
>   lp -d printername -o PageSize=Custom.4x6in -o fitplot /path/to/PDF ;   # inches
>   lp -d printername -o PageSize=Custom.4x8cm -o fitplot /path/to/PDF ;   # cm
>   lp -d printername -o PageSize=Custom.440x310 -o fitplot /path/to/PDF ; # points (1/72 of an inch)
> 
> ("fitplot" will expand the image to fit fully into the "imageable
> area" of the medium, so it may be better to leave it away...)

I think the Stylus can print to the edges of the paper.

With 8.5x11" "Letter" paper this still prints centered both vertically
and horizontally on the page:

    lp -d Stylus870 -o  PageSize=Custom.468x324 -P 1-1 test.pdf

Adding the -o fitplot option it then prints in the lower left corner of
the page, but at a reduced size (2.5" wide by 1.5" tall).

If I place the card stock on the lower left corner of the page the
image is centered on the card, although much smaller.


BTW -- I tried those same commands on a Postscript printer (HP 4ML)
and it always prints right in the middle of the page.

Oh well. ;)  Thanks very much for taking time to look at it.



-- 
Bill Moseley
moseley at hank.org





More information about the cups mailing list