attachment
<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Greetings,<div class=""><br class=""></div><div class="">This was privately discussed before being discussed at today's IPP WG meeting, so re-posting for posterity. Notes from today's meeting (recorded in mintutes at: <a href="http://ftp.pwg.org/pub/pwg/ipp/minutes/ippv2-concall-minutes-20170316.pdf" class="">http://ftp.pwg.org/pub/pwg/ipp/minutes/ippv2-concall-minutes-20170316.pdf</a>) on this subject:</div><div class=""><br class=""></div><div class="">
<div title="Page 1" class="page">
<div class="layoutArea">
<div class="column">
<ol start="2" class="">
<li style="font-size: 12.000000pt; font-family: 'Helvetica'" class=""><p class=""><span style="font-size: 12pt;" class="">Possible pwgraster-lint tool (Smith/Mike)
</span></p>
</li>
</ol><p class=""><span style="font-size: 12.000000pt; font-family: 'Helvetica'" class="">⁃ </span><span style="font-size: 12.000000pt; font-family: 'Helvetica'" class="">email discussion on 03/14/17<br class="">
</span><span style="font-size: 12.000000pt; font-family: 'Helvetica'" class="">⁃ </span><span style="font-size: 12.000000pt; font-family: 'Helvetica'" class="">Smith will forward message thread to IPP mailing list
</span></p><p class=""><span style="font-size: 12.000000pt; font-family: 'Helvetica'" class="">⁃ </span><span style="font-size: 12.000000pt; font-family: 'Helvetica'" class="">Issue #29 in ippsample project:<br class="">
</span><span style="font-size: 12.000000pt; font-family: 'Helvetica'" class="">⁃ </span><span style="font-size: 12.000000pt; font-family: 'Helvetica'" class=""><a href="https://github.com/istopwg/ippsample/issues/29" class="">https://github.com/istopwg/ippsample/issues/29</a>
</span></p><p class=""><span style="font-size: 12.000000pt; font-family: 'Helvetica'" class="">⁃ </span><span style="font-size: 12.000000pt; font-family: 'Helvetica'" class="">Discussion:
</span></p>
<ul style="list-style-type: none" class="">
<li class=""><p class=""><span style="font-size: 12.000000pt; font-family: 'Helvetica'" class="">⁃ </span><span style="font-size: 12.000000pt; font-family: 'Helvetica'" class="">Also use for a future IPP Transform service, using a generic "lint
</span></p><p class=""><span style="font-size: 12.000000pt; font-family: 'Helvetica'" class="">report" MIME media type so that (in theory) any document format
</span></p><p class=""><span style="font-size: 12.000000pt; font-family: 'Helvetica'" class="">could be validated.
</span></p>
</li>
<li class=""><p class=""><span style="font-size: 12.000000pt; font-family: 'Helvetica'" class="">⁃ </span><span style="font-size: 12.000000pt; font-family: 'Helvetica'" class="">Have OpenPrinting volunteers to write code as needed for different
</span></p><p class=""><span style="font-size: 12.000000pt; font-family: 'Helvetica'" class="">formats.
</span></p>
</li>
<li class=""><p class=""><span style="font-size: 12.000000pt; font-family: 'Helvetica'" class="">⁃ </span><span style="font-size: 12.000000pt; font-family: 'Helvetica'" class="">Known issues with reporting problems with PDF/PostScript since it
</span></p><p class=""><span style="font-size: 12.000000pt; font-family: 'Helvetica'" class="">is hard to report on where the problem is (page number or PDF
object number are more feasible than file offsets)
</span></p>
</li>
</ul><p class=""><span style="font-size: 12.000000pt; font-family: 'Helvetica'" class="">⁃ </span><span style="font-size: 12.000000pt; font-family: 'Helvetica'" class="">Will talk with Artifex developers for their feedback </span></p>
</div>
</div>
</div></div><div class=""><br class=""><div class="">
Smith<br class=""><br class="">/**<br class=""> Smith Kennedy<br class=""> Wireless Architect - Client Software - IPG-PPS<br class=""> Standards - IEEE ISTO PWG / Bluetooth SIG / Wi-Fi Alliance / NFC Forum / USB IF<br class=""> Chair, IEEE ISTO Printer Working Group<br class=""> HP Inc.<br class="">*/<br class=""><br class=""><br class="">
</div>
<div><br class=""><blockquote type="cite" class=""><div class="">Begin forwarded message:</div><br class="Apple-interchange-newline"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">From: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">Smith Kennedy <<a href="mailto:smith.kennedy@hp.com" class="">smith.kennedy@hp.com</a>><br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">Subject: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class=""><b class="">Re: "pwgraster-lint" tool?</b><br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">Date: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">March 14, 2017 at 11:25:33 AM MDT<br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">To: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">Michael Sweet <<a href="mailto:msweet@apple.com" class="">msweet@apple.com</a>><br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">Cc: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">Ira McDonald <<a href="mailto:blueroofmusic@gmail.com" class="">blueroofmusic@gmail.com</a>><br class=""></span></div><br class=""><div class=""><meta http-equiv="Content-Type" content="text/html charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Thanks Mike!<div class=""><br class=""></div><div class=""><a href="https://github.com/istopwg/ippsample/issues/29" class="">https://github.com/istopwg/ippsample/issues/29</a></div><div class=""><br class=""></div><div class=""><br class=""><div class=""><br class="">
<br class=""><div style="" class=""><blockquote type="cite" class=""><div class="">On Mar 14, 2017, at 10:51 AM, Michael Sweet <<a href="mailto:msweet@apple.com" class="">msweet@apple.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Smith,<div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Mar 14, 2017, at 12:23 PM, Kennedy, Smith (Wireless Architect) <<a href="mailto:smith.kennedy@hp.com" class="">smith.kennedy@hp.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi Mike,<br class=""><br class="">Do we have any tools that can validate the structure of a PWG Raster file?</div></div></blockquote><div class=""><br class=""></div>Nothing specifically right now; the CUPS raster code reports fairly detailed error messages when it runs into issues, so it would be pretty trivial to write a "pwgraster-lint" tool that just read a raster file and reported statistics (number of pages, etc.) along with any errors during reading.</div><div class=""><br class=""><blockquote type="cite" class=""><div class=""><div class=""> I had wondered if ipptransform might be used for this, but the man page doesn't list "image/pwg-raster" as a supported input format.</div></div></blockquote><div class=""><br class=""></div>I should check that; in theory it should be able to do it as long as the resolution, color space, and bit depth is compatible (and otherwise throw an error) but right now I think it just does the PDF and JPEG to PWG Raster or PCL conversion.</div><div class=""><br class=""><blockquote type="cite" class=""><div class=""><div class=""> If not, I can add an "enhancement" to ippsample to have such a tool created, as a reminder.</div></div></blockquote><div class=""><br class=""></div>Go ahead and create an issue tracking this and a PDF and JPEG validator.</div><div class=""><br class=""><blockquote type="cite" class=""><div class=""><div class=""> Would that be hard to write? Such a tool would be a good validator to be used by ippserver. And an equivalent tool would be good to validate the structure of PDF - guessing "mutool' might be a good candidate for that.<br class=""></div></div></blockquote><div class=""><br class=""></div></div>Well, maybe. One of the "problems" with mupdf and Ghostscript is that they won't show you the location of the error, just that there is an error. About the best you can get is "page N contains an error".</div><div class=""><br class=""></div><div class=""><div class="">
<div style="letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">_________________________________________________________<br class="">Michael Sweet, Senior Printing System Engineer<br class=""></div></div>
</div>
<br class=""></div></div></div></blockquote></div><br class=""></div></div></div></div></blockquote></div><br class=""></div></body></html>