LinuxTOY 是一个致力于提供 Linux 相关资讯的专题站点。如果您发现了好用好玩的 Linux 东东并愿意发扬自由、分享的精神,可以点击顶部导航 Contact 按钮进行投稿。

Related entries

  • No related posts

创建 PDF 文档

  原文在这里,但需要代理才能访问。简单记录下过程备用。

  1.安装 cups-pdf:

  sudo apt-get install cups-pdf

  2.编辑/etc/cups/cupsd.conf:

  将 RunAsUser Yes 更改为 RunAsUser No

  3.重启 cupsys:

  sudo /etc/init.d/cupsys restart

  4.添加新的打印机:

  到 System->Administration->Printing,新建打印机,第一步选择“Local Printer”和“PDF Printer”选项,第二步选择“Generic”,并在下面选择“Postscript Color Printer”。

  最后,简单执行 sudo chmod +s /usr/lib/cups/backend/cups-pdf 即可。

  至此,你可以通过打印来创建 PDF 文档了。

  注:生成的文件在用户主目录的 PDF 文件夹中。完美支持中文!

署名 • 注明出处 • 非商业性使用

2 Comments

  1. 1 Semson Commented @ 2006-08-01 11:29 pmReply to this comment

    方法在CUPS 1.2后有變動了, 看看原文的14. Simon的回應

  2. 2 Toy Commented @ 2006-08-02 7:53 amReply to this comment

    谢谢 Semson 的指正!