Sigh. Well, no joy on the mac, despite the presumed promise of platform-neutral Python.<p>Python 2.5.1:<p>line 8: !DOCTYPE: No such file or directory<p>line 9: syntax error near unexpected token `newline'<p>line 9: `  "<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#62" rel="nofollow">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#62</a>;<p>Python 3.0:<p><pre><code>  File "pdfmunge.py", line 8
    &#60;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    ^
</code></pre>
SyntaxError: invalid syntax