<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Jan 22, 2010, at 2:37 PM, John MacLerran wrote:</div><blockquote type="cite"><div><font class="Apple-style-span" color="#000000">...</font></div></blockquote><blockquote type="cite"><div>When we allow CUPS to 'pretty format' the output, then we get the raw PCL escape codes printed on the page, formatted and in the same font as the pretty output.<br><br>We'd appreciate any pointers, tips, tricks, or even an "it's not possible".  At least, that way we'd know it's not possible.<br></div></blockquote></div><div><br></div>OK, so this *is* possible by tweaking the application/vnd.cups-raw MIME media type definition in the mime.types file (or better - create your own local.types file that extends the current definition...)<div><br></div><div>Basically you need to identify unique characters in the file, typically at the beginning, that the PCL output contains. Once CUPS knows that the file is raw PCL data, it will just pass the data through to the printer instead of filtering it.</div><div><br></div><div>"man mime.types" for information about the format. For example, if your PCL files start with ESC E your /etc/cups/local.types file would contain:</div><div><br></div><div>    application/vnd.cups-raw string(0,<1B>E)</div><div><br><div>
<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-align: 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; "><div>___________________________________________________</div><div>Michael Sweet, Senior Printing System Engineer</div><div><br></div></span><br class="Apple-interchange-newline">
</div>
<br></div></body></html>