<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>David,</div><div><br></div><div>The following command will set the default for the queue:</div><div><br></div>    lpadmin -p printer -o fit-to-page-default=true -o fitplot-default=true<div><br></div><div>and if you have access to the client sources you can just add boolean attributes with those names to the print job request.</div><div><br></div><div><br><div><div><div>On May 29, 2012, at 7:43 PM, David Wong wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi Michael,<div><br></div><div>My client submits their job through IPP not by issuing “lp”, so is there a way to set it within CUPS (1.4.2 Red Hat)? From CUPS web interface, I cannot find it in all printers, HP has similar option but it did not exist for Kyocera. The only way it worked for me was through system-config-printer; it can select “Scale to fit” under “Job Option”</div>
<div><br></div><div>Thanks,</div><div>David<br><br><div class="gmail_quote">On Mon, May 28, 2012 at 12:05 PM, Michael Sweet <span dir="ltr"><<a href="mailto:msweet@apple.com" target="_blank">msweet@apple.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 ..8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">David,<div><div class="im"><br><div><div>On May 27, 2012, at 8:02 PM, David Wong wrote:</div>
<blockquote type="cite">Hi,<div><br></div><div><p class="MsoNormal">I need to print A4 documents to a Kyocera Letter size only printer.
Part of the document was cropped. For
HP LaserJet, I was able to redefine the ImageableArea in the PPD file to scale it. However,
this did not work for Kyocera. I would like to know is it CUPS’s job to do the actual
scaling or it is up to the printer to do the scaling?</p></div></blockquote></div></div><div>Unless instructed, it is the printer's job. However, CUPS supports the "fit-to-page" option in recent versions (used to be called "fitplot") which will accomplish what you want:</div>
<div><br></div><div><span style="white-space:pre-wrap"> </span>lp -d printer -o fitplot filename</div><div><br></div><div>or:</div><div><br></div><div><span style="white-space:pre-wrap">    </span>lp -d printer -o fit-to-page filename</div>
<div><br></div><div>
<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Geneva;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Monaco;word-spacing:0px"><div style="word-wrap:break-word">
<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Monaco;word-spacing:0px"><div style="word-wrap:break-word">
<div>________________________________________________________________________</div><div>Michael Sweet, Senior Printing System Engineer, PWG Chair</div></div></span></div></span></span>
</div>
<br></div></div><br>_______________________________________________<br>
cups mailing list<br>
<a href="mailto:cups@easysw.com">cups@easysw.com</a><br>
<a href="http://lists.easysw.com/mailman/listinfo/cups" target="_blank">http://lists.easysw.com/mailman/listinfo/cups</a><br>
<br></blockquote></div><br></div>
_______________________________________________<br>cups mailing list<br><a href="mailto:cups@easysw.com">cups@easysw.com</a><br>http://lists.easysw..com/mailman/listinfo/cups<br></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Geneva; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Monaco; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Monaco; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>________________________________________________________________________</div><div>Michael Sweet, Senior Printing System Engineer, PWG Chair</div></div></span></div></span></span>
</div>
<br></div></div></body></html>