我有一些 Python 源文件,我想打印成 PDF 供以后阅读 我以前用 gedit 一个文件一个文件地做这个 但是有大量的 .py 文件我想自动化这个过程
我该怎么做? 语法高亮也更好,例如 gedit
提前致谢
最佳答案
我会使用 a2ps 将 postscript 很好地格式化为 postscript,然后使用 ps2pdf(来自 Ghostscript)将 postscript 转换为 PDF。
关于linux - 如何在 Linux 命令行中将文本文件打印为 PDF 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6989792/