特殊:Badtitle/NS100:PDFPrinting:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
第1行: | 第1行: | ||
{{From|https://help.ubuntu.com/community/PDFPrinting}} | {{From|https://help.ubuntu.com/community/PDFPrinting}} | ||
{{Languages|UbuntuHelp:PDFPrinting}} | {{Languages|UbuntuHelp:PDFPrinting}} | ||
=== PDFPrinting === | |||
==== Creating .pdf documents from any application ==== | |||
If you find that you need to create .pdf documents from an application that does not natively provide .pdf output, and/or are migrating from Windows and have used and liked PDFCreator or a similar application, then you need to install the cups-pdf package. This is assuming, of course, that you are already set up to print (at least 9.04 and 9.10 have all the other required packages already installed with a standard installation.) To do this, simply go to Synaptic (in 9.04/GNOME, that's System - Administration - Synaptic Package Manager) and mark the package "cups-pdf" for installation, then hit "apply." Presumably if you do this and you do not have CUPS already installed, Synaptic will identify and prompt you to mark all the required packages. | |||
This will install the package and also create a "printer" on your machine called "PDF." To create a .pdf of any document, simply format it as you like and then print as you would normally, selecting "PDF" instead of your usual printer. The output will be placed into a folder in your home directory called "PDF" - that is, /home/your_user_name/PDF. Any text in the resulting .pdf file will be selectable and searchable. | |||
I have done the above procedure on two machines; one running Ubuntu 9.10 i386 and one running Ubuntu 9.04 64-bit. After doing the above the "printer" worked correctly with no additional steps on the 9.10 machine, however, on the 9.04 machine I had to create the /home/your_user_name/PDF folder manually for each user on that machine to allow the PDF "printer" to work. Before I did so, when opening the "Printer Properties" window for the PDF "printer" I saw the following: | |||
<code><nowiki>Printer State: Idle - /usr/libs/cups/backend/cups-pdf failed</nowiki></code> | |||
So if you can't find your output and see the above status, make sure that the PDF folder exists in the home directory of the current user. | |||
As installed, the PDF "printer" defaults to a 8.5"x11" page and 300 DPI, but these settings can be changed. Go to System - Administration - Printing and double-click on "PDF" in the resulting window to access these settings. | |||
< | |||
</nowiki></ | |||
--- | |||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2010年5月19日 (三) 23:51的最新版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/PDFPrinting }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:PDFPrinting | UbuntuHelp:PDFPrinting | {{#if: | :}}PDFPrinting}}/af | • {{#if: UbuntuHelp:PDFPrinting|Afrikaans| [[::PDFPrinting/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PDFPrinting | UbuntuHelp:PDFPrinting | {{#if: | :}}PDFPrinting}}/ar | • {{#if: UbuntuHelp:PDFPrinting|العربية| [[::PDFPrinting/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PDFPrinting | UbuntuHelp:PDFPrinting | {{#if: | :}}PDFPrinting}}/az | • {{#if: UbuntuHelp:PDFPrinting|azərbaycanca| [[::PDFPrinting/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PDFPrinting | UbuntuHelp:PDFPrinting | {{#if: | :}}PDFPrinting}}/bcc | • {{#if: UbuntuHelp:PDFPrinting|جهلسری بلوچی| [[::PDFPrinting/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PDFPrinting | UbuntuHelp:PDFPrinting | {{#if: | :}}PDFPrinting}}/bg | • {{#if: UbuntuHelp:PDFPrinting|български| [[::PDFPrinting/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PDFPrinting | UbuntuHelp:PDFPrinting | {{#if: | :}}PDFPrinting}}/br | • {{#if: UbuntuHelp:PDFPrinting|brezhoneg| [[::PDFPrinting/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PDFPrinting | UbuntuHelp:PDFPrinting | {{#if: | :}}PDFPrinting}}/ca | • {{#if: UbuntuHelp:PDFPrinting|català| [[::PDFPrinting/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PDFPrinting | UbuntuHelp:PDFPrinting | {{#if: | :}}PDFPrinting}}/cs | • {{#if: UbuntuHelp:PDFPrinting|čeština| [[::PDFPrinting/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PDFPrinting | UbuntuHelp:PDFPrinting | {{#if: | :}}PDFPrinting}}/de | • {{#if: UbuntuHelp:PDFPrinting|Deutsch| [[::PDFPrinting/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PDFPrinting | UbuntuHelp:PDFPrinting | {{#if: | :}}PDFPrinting}}/el | • {{#if: UbuntuHelp:PDFPrinting|Ελληνικά| [[::PDFPrinting/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PDFPrinting | UbuntuHelp:PDFPrinting | {{#if: | :}}PDFPrinting}}/es | • {{#if: UbuntuHelp:PDFPrinting|español| [[::PDFPrinting/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PDFPrinting | UbuntuHelp:PDFPrinting | {{#if: | :}}PDFPrinting}}/fa | • {{#if: UbuntuHelp:PDFPrinting|فارسی| [[::PDFPrinting/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PDFPrinting | UbuntuHelp:PDFPrinting | {{#if: | :}}PDFPrinting}}/fi | • {{#if: UbuntuHelp:PDFPrinting|suomi| [[::PDFPrinting/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PDFPrinting | UbuntuHelp:PDFPrinting | {{#if: | :}}PDFPrinting}}/fr | • {{#if: UbuntuHelp:PDFPrinting|français| [[::PDFPrinting/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PDFPrinting | UbuntuHelp:PDFPrinting | {{#if: | :}}PDFPrinting}}/gu | • {{#if: UbuntuHelp:PDFPrinting|ગુજરાતી| [[::PDFPrinting/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PDFPrinting | UbuntuHelp:PDFPrinting | {{#if: | :}}PDFPrinting}}/he | • {{#if: UbuntuHelp:PDFPrinting|עברית| [[::PDFPrinting/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PDFPrinting | UbuntuHelp:PDFPrinting | {{#if: | :}}PDFPrinting}}/hu | • {{#if: UbuntuHelp:PDFPrinting|magyar| [[::PDFPrinting/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PDFPrinting | UbuntuHelp:PDFPrinting | {{#if: | :}}PDFPrinting}}/id | • {{#if: UbuntuHelp:PDFPrinting|Bahasa Indonesia| [[::PDFPrinting/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PDFPrinting | UbuntuHelp:PDFPrinting | {{#if: | :}}PDFPrinting}}/it | • {{#if: UbuntuHelp:PDFPrinting|italiano| [[::PDFPrinting/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PDFPrinting | UbuntuHelp:PDFPrinting | {{#if: | :}}PDFPrinting}}/ja | • {{#if: UbuntuHelp:PDFPrinting|日本語| [[::PDFPrinting/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PDFPrinting | UbuntuHelp:PDFPrinting | {{#if: | :}}PDFPrinting}}/ko | • {{#if: UbuntuHelp:PDFPrinting|한국어| [[::PDFPrinting/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PDFPrinting | UbuntuHelp:PDFPrinting | {{#if: | :}}PDFPrinting}}/ksh | • {{#if: UbuntuHelp:PDFPrinting|Ripoarisch| [[::PDFPrinting/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PDFPrinting | UbuntuHelp:PDFPrinting | {{#if: | :}}PDFPrinting}}/mr | • {{#if: UbuntuHelp:PDFPrinting|मराठी| [[::PDFPrinting/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PDFPrinting | UbuntuHelp:PDFPrinting | {{#if: | :}}PDFPrinting}}/ms | • {{#if: UbuntuHelp:PDFPrinting|Bahasa Melayu| [[::PDFPrinting/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PDFPrinting | UbuntuHelp:PDFPrinting | {{#if: | :}}PDFPrinting}}/nl | • {{#if: UbuntuHelp:PDFPrinting|Nederlands| [[::PDFPrinting/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PDFPrinting | UbuntuHelp:PDFPrinting | {{#if: | :}}PDFPrinting}}/no | • {{#if: UbuntuHelp:PDFPrinting|norsk| [[::PDFPrinting/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PDFPrinting | UbuntuHelp:PDFPrinting | {{#if: | :}}PDFPrinting}}/oc | • {{#if: UbuntuHelp:PDFPrinting|occitan| [[::PDFPrinting/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PDFPrinting | UbuntuHelp:PDFPrinting | {{#if: | :}}PDFPrinting}}/pl | • {{#if: UbuntuHelp:PDFPrinting|polski| [[::PDFPrinting/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PDFPrinting | UbuntuHelp:PDFPrinting | {{#if: | :}}PDFPrinting}}/pt | • {{#if: UbuntuHelp:PDFPrinting|português| [[::PDFPrinting/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PDFPrinting | UbuntuHelp:PDFPrinting | {{#if: | :}}PDFPrinting}}/ro | • {{#if: UbuntuHelp:PDFPrinting|română| [[::PDFPrinting/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PDFPrinting | UbuntuHelp:PDFPrinting | {{#if: | :}}PDFPrinting}}/ru | • {{#if: UbuntuHelp:PDFPrinting|русский| [[::PDFPrinting/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PDFPrinting | UbuntuHelp:PDFPrinting | {{#if: | :}}PDFPrinting}}/si | • {{#if: UbuntuHelp:PDFPrinting|සිංහල| [[::PDFPrinting/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PDFPrinting | UbuntuHelp:PDFPrinting | {{#if: | :}}PDFPrinting}}/sq | • {{#if: UbuntuHelp:PDFPrinting|shqip| [[::PDFPrinting/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PDFPrinting | UbuntuHelp:PDFPrinting | {{#if: | :}}PDFPrinting}}/sr | • {{#if: UbuntuHelp:PDFPrinting|српски / srpski| [[::PDFPrinting/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PDFPrinting | UbuntuHelp:PDFPrinting | {{#if: | :}}PDFPrinting}}/sv | • {{#if: UbuntuHelp:PDFPrinting|svenska| [[::PDFPrinting/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PDFPrinting | UbuntuHelp:PDFPrinting | {{#if: | :}}PDFPrinting}}/th | • {{#if: UbuntuHelp:PDFPrinting|ไทย| [[::PDFPrinting/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PDFPrinting | UbuntuHelp:PDFPrinting | {{#if: | :}}PDFPrinting}}/tr | • {{#if: UbuntuHelp:PDFPrinting|Türkçe| [[::PDFPrinting/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PDFPrinting | UbuntuHelp:PDFPrinting | {{#if: | :}}PDFPrinting}}/vi | • {{#if: UbuntuHelp:PDFPrinting|Tiếng Việt| [[::PDFPrinting/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PDFPrinting | UbuntuHelp:PDFPrinting | {{#if: | :}}PDFPrinting}}/yue | • {{#if: UbuntuHelp:PDFPrinting|粵語| [[::PDFPrinting/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PDFPrinting | UbuntuHelp:PDFPrinting | {{#if: | :}}PDFPrinting}}/zh | • {{#if: UbuntuHelp:PDFPrinting|中文| [[::PDFPrinting/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PDFPrinting | UbuntuHelp:PDFPrinting | {{#if: | :}}PDFPrinting}}/zh-hans | • {{#if: UbuntuHelp:PDFPrinting|中文(简体)| [[::PDFPrinting/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PDFPrinting | UbuntuHelp:PDFPrinting | {{#if: | :}}PDFPrinting}}/zh-hant | • {{#if: UbuntuHelp:PDFPrinting|中文(繁體)| [[::PDFPrinting/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:PDFPrinting|:PDFPrinting|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :PDFPrinting/zh | | {{#ifexist: PDFPrinting/zh | | {{#ifeq: {{#titleparts:PDFPrinting|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:PDFPrinting|1|-1|}} | zh | | }}
PDFPrinting
Creating .pdf documents from any application
If you find that you need to create .pdf documents from an application that does not natively provide .pdf output, and/or are migrating from Windows and have used and liked PDFCreator or a similar application, then you need to install the cups-pdf package. This is assuming, of course, that you are already set up to print (at least 9.04 and 9.10 have all the other required packages already installed with a standard installation.) To do this, simply go to Synaptic (in 9.04/GNOME, that's System - Administration - Synaptic Package Manager) and mark the package "cups-pdf" for installation, then hit "apply." Presumably if you do this and you do not have CUPS already installed, Synaptic will identify and prompt you to mark all the required packages.
This will install the package and also create a "printer" on your machine called "PDF." To create a .pdf of any document, simply format it as you like and then print as you would normally, selecting "PDF" instead of your usual printer. The output will be placed into a folder in your home directory called "PDF" - that is, /home/your_user_name/PDF. Any text in the resulting .pdf file will be selectable and searchable.
I have done the above procedure on two machines; one running Ubuntu 9.10 i386 and one running Ubuntu 9.04 64-bit. After doing the above the "printer" worked correctly with no additional steps on the 9.10 machine, however, on the 9.04 machine I had to create the /home/your_user_name/PDF folder manually for each user on that machine to allow the PDF "printer" to work. Before I did so, when opening the "Printer Properties" window for the PDF "printer" I saw the following:
Printer State: Idle - /usr/libs/cups/backend/cups-pdf failed
So if you can't find your output and see the above status, make sure that the PDF folder exists in the home directory of the current user.
As installed, the PDF "printer" defaults to a 8.5"x11" page and 300 DPI, but these settings can be changed. Go to System - Administration - Printing and double-click on "PDF" in the resulting window to access these settings.