![]() The default is to use the size specified in the file. Lp -o fit-to-page filename lpr -o fit-to-page filename The -o fit-to-page option specifies that the document should be scaled to fit on the page: -o number-up-layout=tbrl Top to bottom, right to left.-o number-up-layout=tblr Top to bottom, left to right.-o number-up-layout=rltb Right to left, top to bottom.-o number-up-layout=rlbt Right to left, bottom to top.-o number-up-layout=lrtb Left to right, top to bottom (default).-o number-up-layout=lrbt Left to right, bottom to top.-o number-up-layout=btrl Bottom to top, right to left.-o number-up-layout=btlr Bottom to top, left to right.The -o number-up-layout=value option chooses the layout of the pages on each output page: -o page-border=single-thick draw one 1pt border around each page.-o page-border=single draw one hairline border around each page.-o page-border=none do not draw a border (default).-o page-border=double-thick draw two 1pt borders around each page.-o page-border=double draw two hairline borders around each page.The -o page-border=value option chooses the border to draw around each page: Lp -o number-up=1 filename lp -o number-up=2 filename lp -o number-up=4 filename lpr -o number-up=16 filename CUPS supports 1, 2, 4, 6, 9, and 16-Up formats the default format is 1-Up: N-Up printing places multiple document pages on a single printed page. The -o number-up=value option selects N-Up printing. WIDTHx LENGTHcm filename lp -o media=Custom. WIDTHx LENGTHin filename lp -o media=Custom. WIDTHx LENGTH filename lp -o media=Custom. When Custom is listed for the PageSize option, you can specify custom media sizes using one of the following forms: You can list them using the lpoptions(1) command: The actual options supported are defined in the printer's PPD file in the PageSize, InputSlot, and MediaType options. 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). 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. Lp -o landscape -o fit-to-page -o media=Custom.106x164mm image.jpg ![]() WIDTHx LENGTH" 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. 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. Lp -o landscape -o fit-to-page -o media=A6 image.jpg I have used the following command to print: It works perfectly when I use the printing options through the GUI, the option "fit to full page" does the job. Unfortunately, the printer shifts the image, it leaves empty space on the left and right side of the paper. 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |