个人工具
登录
查看“UbuntuHelp:PDFPrinting”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:PDFPrinting”的源代码
来自Ubuntu中文
←
UbuntuHelp:PDFPrinting
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/PDFPrinting}} {{Languages|UbuntuHelp:PDFPrinting}} <<Include(Tag/Unsupported)>> <<Include(Tag/Deletion)>> Most Gnome applications and OpenOffice.org can generate PDF documents without adding anything special. However, if you wish to create PDF files from any application that can print, you need to install <code><nowiki>cups-pdf</nowiki></code> and create a ''virtual PDF printer''. === Instructions for Ubuntu 6.06 LTS, 6.10 and 7.04 === <ol><li>Install the <code><nowiki>cups-pdf</nowiki></code> package. </li><li>If you are using Ubuntu 6.06 (due to [https://launchpad.net/distros/ubuntu/+source/cups-pdf/+bug/42147 bug 42147]) it is necessary to manually change one file in order to add the PDF printer:</li></ol> <pre><nowiki> sudo chmod +s /usr/lib/cups/backend/cups-pdf</nowiki></pre> You may skip this step if you are using version 6.10, or higher, of Ubuntu. <ol><li>From the menu, select '''System -> Administration -> Printing'''. Via the "Printers" dialog, opt to add a '''New Printer'''. </li><li>There should now be a "PDF Printer" under the list of ''detected printers''. Select the "PDF Printer" and press "Forward". </li><li>Select ''Generic'' as the manufacturer and the ''postscript color printer'' (this name may vary slightly) as the model; then press "Forward". </li><li>Give the printer a name such as "PDF-Printer" (the name should not have any spaces).</li></ol> You can now create PDF files by using the Print option from your programs. To print a test page, try: <ol><li>Right click on the newly created printer, and select Properties </li><li>Click "Print a Test Page"</li></ol> The printer sends PDF files to your Home folder, under the PDF folder. === Instructions for Ubuntu 5.10 === '''Install the cups-pdf package from universe and restart cups''' <pre><nowiki> sudo apt-get install cups-pdf sudo /etc/init.d/cupsys restart </nowiki></pre> Cups-PDF should be working for Gedit and abiword and a few other apps. If you need more general PDF creation, continue. '''Update Cupsd.conf''' Cups requires changing permissions to get Cups-PDF to work for other applications: Quote Leszek Tarkowski: <pre><nowiki> You have to edit /etc/cups/cupsd.conf sudo nano /etc/cups/cupsd.conf change RunAsUser from Yes to No. sudo /etc/init.d/cupsys restart </nowiki></pre> This will cause cups to run as root, rather than as a user. This is necessary for Cups-PDF, but could be a security risk if a hackable bug is found in cups. Use your judgement and stay on top of Ubuntu Security updates. '''Create the pdf-printer in your gnome-printer-setup''' <pre><nowiki> System--> Administration--> Printing Add printer Select "Local Printer" and use a "detected printer--> PDF printer". Manufacturer--> Generic, Model-->PostScript Color Printer, Driver-->Should come preselected with a green dot (rev3a) Apply </nowiki></pre> '''Test it out''' <pre><nowiki> Open any app and print using the new "postscript-color-printer". PDFs are created in your home folder in a PDF subfolder (~/PDF/) </nowiki></pre> '''Rename the printer''' <pre><nowiki> If you want a name better than "postscript-color-printer" sudo nano /etc/cups/printers.conf Change <Printer postscript-color-printer> to <Printer PDF-Printer> sudo /etc/init.d/cupsys restart </nowiki></pre> Name can be anything that doesn't have spaces, #, or / === Instructions for Ubuntu 9.04 Jaunty Jackalope === 1. Install the cups-pdf package: sudo apt-get install cups-pdf 2. Create a PDF directory mkdir ~/PDF; chmod 701 ~/PDF The second step is necessary because of bug 270046 https://bugs.launchpad.net/ubuntu/+source/cups/+bug/270046 ----- === Comments === At one point, this page was updated based on a [[UbuntuHelp:HowTo|HowTo]] posted in the forums: http://ubuntuforums.org/showthread.php?t=140815 [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:PDFPrinting
。