1) change the default in /usr/shared/ghostscript/8.51/lib/gs_init.ps .
2) add -dDEVICEWIDTHPOINTS=595 -dDEVICEHEIGHTPOINTS=842 to the gs commands in your driver .
If your printer cann't clip then the best way is to add also -dFIXEDMEDIA to it . (If you also print PDF files that put also -dPDFFitPage in it . )
How this is solved in CUPS I donn't know .
example :
Code: Select all
if [ "$paper" = "letter" ]; then
DEVICESIZE="-dDEVICEWIDTHPOINTS=612 -dDEVICEHEIGHTPOINTS=792 -dFIXEDMEDIA "
else #default a4
DEVICESIZE="-dDEVICEWIDTHPOINTS=595 -dDEVICEHEIGHTPOINTS=842 -dFIXEDMEDIA "
fi
gs \
-q -dBATCH -dSAFER -dNOPAUSE \
-sDEVICE=ijs \
-sIjsServer=/usr/bin/ijsgimpprint \
-sDeviceManufacturer=HEWLETT-PACKARD -sDeviceModel=pcl-5 \
-dIjsUseOutputFD \
-sOutputFile=$OUTPUT \
-sPaperSize=$paper \
$DEVICESIZE \