command line printing / lp fit-to-page or fitplot not working
Hello,
I have tried printing on Mac Mini (Mac OS 10) using the command line "lp" tool to print images on A6 postcard paper on a Cannon iP7200 printer.
Unfortunately, the printer shifts the image, it leaves empty space on the left and right side of the paper. It works perfectly when I use the printing options through the GUI, the option "fit to full page" does the job.
I have used the following command to print:
lp -o landscape -o fit-to-page -o media=A6 image.jpg
Moreover, I looked at the "cups" log file (/var/log/cups/) and printing through the GUI in the log it shows the "-o media=Custom.WIDTHxLENGTH" option, as I have created a "custom" profile with custom widthxlength, however that does not work in the command line, I use the same width and length as the one reported from printing via GUI in the cups log file. For instance:
lp -o landscape -o fit-to-page -o media=Custom.106x164mm image.jpg
Reading the documentation of "lp" and online support, the "fit-to-page" or "fitplot" option should do the work, but in my case it does not work. Th printer shifts on the left the image and leaves empty space on the left and right side of the paper (only horizontally, top and bottom part is fitted).
Is there any solution to this?
Thanks.
Mac mini, Mac OS X (10.7), lp, Cannon iP7200