擅长:python、mysql、java
<p>下载并尝试<a href="http://code.activestate.com/recipes/532908-text-to-pdf-converter-rewrite/download/1/" rel="nofollow">this</a>。作者写道:</p>
<blockquote>
<p>PyText2Pdf makes a 7-bit clean PDF file from any input file.</p>
<p>It reads from a named file, and writes the PDF file to a file
specified by the user, otherwise to a file with '.pdf' appended to the
input file.</p>
</blockquote>
<p>您可以按以下说明运行它:</p>
<pre><code>text2pdf.py rfc_3917.txt -S "Netflow RFC" -A "Quittek, et al." -K netflow,rfc,networking,ipfix -R "[Page\s+\d+]"
</code></pre>
<p>但请查看脚本内部以了解更多详细信息。在</p>
<p>指向其在Django中用法的链接是<a href="https://djangosnippets.org/snippets/1778/" rel="nofollow">here</a>,但部分过时,因为使用了旧的脚本。我在这里提供的链接是更新的。在</p>