HOWTO: Create PDF Documents in Dapper, Edgy & Feisty
UPDATE (April 9, 2007): According to others, this also works in Edgy & Feisty.
In OpenOffice, there is a command in the File menu 'Export as PDF'. For other applications, you will need to do the following:
1. Install cups-pdf
Code:
sudo apt-get install cups-pdf
2. A hack to allow Dapper to create PDF Printer (from here)
Code:
sudo chmod +s /usr/lib/cups/backend/cups-pdf
3. Configure CUPS for the PDF printer.
- Select SYSTEM > ADMINISTRATION > PRINTERS > NEW PRINTER
- Select LOCAL PRINTER
- Use detected printer: PDF PRINTER
- Select Print Driver:
- Manufacturer: Generic
- Model: Postscript Color Printer
- Name: postscript-color-printer-rev3b
- Click APPLY
4. When printing from any application, select the newly created postscript-color-printer-rev3b printer to generate PDF files.
Output files are stored in your home directory under /PDF subirectory.
To change the default location of the PDF output:
Quote:
Originally Posted by dowdberry
Edit the
/etc/cups/cups-pdf.conf file
Code:
gksudo gedit /etc/cups/cups-pdf.conf
Search for:
and change to something more meaningful:
Code:
Out ${HOME}/my_print_to_pdf_folder
and restart:
Code:
sudo /etc/init.d/cupsys restart
-Dave
Re: HOWTO: Create PDF Documents in Dapper
FYI- looks like this trick works in Edgy as well.
Just use driver name postscript-color-printer-rev4
Re: HOWTO: Create PDF Documents in Dapper
Is there a way that one might open a pdf file and manipulate it in ubuntu?
Re: HOWTO: Create PDF Documents in Dapper
Not that I'm aware of. You would need to copy the text from the PDF into OpenOffice, edit it, and then export it as a new PDF.
The problem is that the original PDF may have been created in a program using some unique fonts & layouts that could get lost when copying over to OpenOffice.
-Dave
Re: HOWTO: Create PDF Documents in Dapper
Re: HOWTO: Create PDF Documents in Dapper
I hear that Abiword will be having, or currently has, a PDF import plugin. I'll go see if I can find out which version that's in.
Re: HOWTO: Create PDF Documents in Dapper
Quote:
Originally Posted by
dbott67
Output files are stored in your home directory under /PDF subirectory.
-Dave
Is there a way to change this default location?
Re: HOWTO: Create PDF Documents in Dapper
looks in the /etc/cups/cups-pdf.conf file
Search for:
Out ${HOME}/PDF
and change to something more meaningul:
Out ${HOME}/my_print_to_pdf_folder
and restart:
/etc/init.d/cupsys restart
Re: HOWTO: Create PDF Documents in Dapper
Quote:
Originally Posted by
dowdberry
looks in the /etc/cups/cups-pdf.conf file
Search for:
Out ${HOME}/PDF
and change to something more meaningul:
Out ${HOME}/my_print_to_pdf_folder
and restart:
/etc/init.d/cupsys restart
Worked wonders, thanks.
dbott67, could you please add this to the original guide?
and maybe also note that you need to restart the cups service as sudo, as some people might not know this (most people I know just copy and paste the instructions given):
Code:
sudo /etc/init.d/cupsys restart
Cheers
Re: HOWTO: Create PDF Documents in Dapper
Done... thanks dowdberry & desp.
-Dave