Professional Documents
Culture Documents
com/archive/feed/61826
Linux.com
Search
Search Search
Log in | Create Account | Submit Story
Articles
Case studies
Features
News
NewsVac
Reviews
Documentation
What Are Linux HOWTOs?
Where Can I Get Linux HOWTOs?
HOWTO Translations
Categorized List of HOWTOs
Single list of HOWTOs
Single list of mini-HOWTOs
Unmaintained HOWTOs
Writing and Submitting a HOWTO
Copyright Information
Distributions
Forums
About Us
What is Linux?
Download Linux
Feeds
Features
News Feeds
Forums
News
1 of 17 03/05/2011 03:30 μμ
Linux.com :: Turn your Linux box into a PDF-maki... http://www.linux.com/archive/feed/61826
Video
Answers
Special Offers
Linux
Application Dev
Programming
Software
Email:
Submit
Feature
Turn your Linux box into a PDF-making machine
What sort of things might you want to save as PDFs? When you buy stuff online,
virtually every site provides a receipt, which you may want later if the order
email is lost or if you need to send in a receipt for expense reports. However,
you may not want to print all of them out just to keep them around, and Firefox
only supports writing to PostScript, rather than PDF.
2 of 17 03/05/2011 03:30 μμ
Linux.com :: Turn your Linux box into a PDF-maki... http://www.linux.com/archive/feed/61826
What you'll need is a Linux box with the Common UNIX Printing System (CUPS)
and the CUPS-PDF driver. I set this up on Ubuntu Feisty, but it should work on
any Linux distro with CUPS and the CUPS-PDF driver.
On the next screen, when asked to select a connection, choose Virtual Printer,
and leave the device URI as it is: cups-pdf:/. Next, on the screen where you can
select a Printer from the database, choose Generic. On the next screen, choose
PostScript as the Model and as the driver for the printer. Then you'll see a
screen that says "Going to create a new printer PDF at cups-pdf:/." Click Apply
and you should have a virtual PDF printer.
Now you should be able to create PDF files from most Linux apps by sending
your print jobs to the PDF printer. When you send jobs to the printer, they'll be
saved to a directory under your home directory that's named after the virtual
printer -- so if you choose PDF as the name of your virtual printer, then the jobs
will be sent to /home/yourusername/PDF.
Most Linux apps are fairly well-behaved, but I've noticed that some jobs come
through as zero-length files even though the applications don't indicate any
problems when printing. For example, Opera happily prints to the virtual
printer, but the resulting jobs are empty files. Firefox and Thunderbird print to
the virtual printer just fine.
Many GNOME and KDE apps now have the ability to print directly to PDF or
export a file to PDF, so it's not necessary to utilize the virtual printer. However,
where the PDF printer comes in really handy is if you have one or more
Windows machines on your network and you'd like to generate PDFs from
Windows apps without spending the money on Adobe's tools.
It's fairly straightforward to set up sharing with Windows. You'll need to make
some simple edits to the CUPS configuration file. On Ubuntu, use sudo vi
/etc/cups/cupsd.conf.
First, make sure that you have the port set correctly:
# Allow remote access
3 of 17 03/05/2011 03:30 μμ
Linux.com :: Turn your Linux box into a PDF-maki... http://www.linux.com/archive/feed/61826
Port 631
Listen /var/run/cups/cups.sock
Browsing On
BrowseOrder allow,deny
BrowseAllow @LOCAL
BrowseAddress @LOCAL
DefaultAuthType Basic
Then, under the first Location directive, you'll want to have something like this:
<Location />
# Allow remote administration...
Order allow,deny
Allow From 127.0.0.1
Allow From 10.0.0.*
</Location>
The line you want to change is Allow From 10.0.0.* . You'll want to make sure that
the IP address reflects your network.
Now you can set up the new printer on Windows. In the Add Printer Wizard in
Windows, you'll select "Connect to a printer on the Internet or on a home office
network:" and set the URL as http://ipaddress/printers/PDF. Windows should see
the printer. Now it's time to choose the printer driver. I Googled a bit and found
that the consensus seems to be that if you want color PDFs, the HP 1200C/PS
driver is the way to go.
Finish walking through the wizard and try to print. If you succeed you will find a
PDF waiting for you on your Ubuntu system. By default, if you print to the Linux
machine, the PDF files will be saved to /var/spool/cups-pdf/ANONYMOUS. This
is in contrast to printing locally, which saves as /home/yourusername/PDF. To
change the directory, uncomment this line:
#AnonDirName /var/spool/cups-pdf/ANONYMOUS
and modify it. For example, if you want to print to your home directory under a
directory called shared, you could use:
AnonDirName /home/shared
With any luck, armed with a new PDF "printing" machine, you can make copies
of documents you want to save without having to kill a tree in the process.
4 of 17 03/05/2011 03:30 μμ
Linux.com :: Turn your Linux box into a PDF-maki... http://www.linux.com/archive/feed/61826
Related Links
Sponsored links:
Comments
Note: Comments are owned by the poster. We are not responsible for their
content.
CUPS plays well with Samba. Why not use Samba when you want to share the
printer? (or pdf generator).
5 of 17 03/05/2011 03:30 μμ
Linux.com :: Turn your Linux box into a PDF-maki... http://www.linux.com/archive/feed/61826
But you're missing the point: this is one solution; Samba is another. That's the
great thing about Linux: there are a lot of great ways to carry out tasks,
regardless of your technical skills.
6 of 17 03/05/2011 03:30 μμ
Linux.com :: Turn your Linux box into a PDF-maki... http://www.linux.com/archive/feed/61826
# pdfconvertemail
# Date Modified: 12/06/2005
#
# Converts text input from a Samba print Spool into a PDF
# then saves that pdf into the users home directory.
#
# Input: Arg 1 = Spool File Name (Provided by sabma)
# Arg 2 = Username of person printing (Provided by sabma)
#
# Output: Produces a Pdf version of the text input
# named for the user, and the date/time
# the job was printed. Thne places that
# file in the users home directory in
# a subdirectory called pdf. If that
# directory is not there it is created.
#
# Requires: date, enscript, ps2pdf, mv, rm, cat, mutt
#
7 of 17 03/05/2011 03:30 μμ
Linux.com :: Turn your Linux box into a PDF-maki... http://www.linux.com/archive/feed/61826
TEMPDIR=/tmp
# the job was printed. Then places that
# file in the users home directory in
# a subdirectory called pdf. If that
# directory is not there it is created.
#
# Requires: date, enscript, ps2pdf, mv, rm, cat, mutt
#
mv $TEMPDIR/$FILENAME.pdf $OUTDIR/$UN/pdf/$FILENAME.pdf
8 of 17 03/05/2011 03:30 μμ
Linux.com :: Turn your Linux box into a PDF-maki... http://www.linux.com/archive/feed/61826
</tt>
PDFCreator
<a href="http://sourceforge.net/projects/pdfcreator/"
title="sourceforge.net">http://sourceforge.net/projects/pdfcreator/</a
sourceforge.net>
It has been very handy for all of my frustrating user base who demands that
their computers "do stuff" while also demanding that they keep Windows.
Seems so oxymoronic some times...
Re:PDFCreator
9 of 17 03/05/2011 03:30 μμ
Linux.com :: Turn your Linux box into a PDF-maki... http://www.linux.com/archive/feed/61826
Re:PDFCreator
Re:PDFCreator
Re(1):PDFCreator
A little off topic....
10 of 17 03/05/2011 03:30 μμ
Linux.com :: Turn your Linux box into a PDF-maki... http://www.linux.com/archive/feed/61826
NAME
SYNOPSIS
DESCRIPTION
mization puts the elements of the file into a more linear order and
individual pages of the file more quickly when accessing the file
through a network.
Note: input.pdf and output.pdf must not be the same. If they are, the
11 of 17 03/05/2011 03:30 μμ
Linux.com :: Turn your Linux box into a PDF-maki... http://www.linux.com/archive/feed/61826
ps2pdf works great for the occasional paper form - once you know what to do
and don't mind the extra steps, but it would be nice to have a graphical utility
with preview mode to make the process easier and more accessible to
neophytes.
<a href="http://gscan2pdf.sourceforge.net/"
title="sourceforge.net">http://gscan2pdf.sourceforge.net/</a sourceforge.net>
Thanks!
It's a shame
12 of 17 03/05/2011 03:30 μμ
Linux.com :: Turn your Linux box into a PDF-maki... http://www.linux.com/archive/feed/61826
Trees
Re:True.
It's impossible to make a 2'x4' from a twig -- but that twig can be ground into
pulp, spread, bleached, and dried into paper.
Re:Trees
Re:Trees
13 of 17 03/05/2011 03:30 μμ
Linux.com :: Turn your Linux box into a PDF-maki... http://www.linux.com/archive/feed/61826
Also, doing network print can bring the processing back to the server, where
you may want to do it cause the workstations are crap.
Easier administration.
CutePDF
<a href="http://www.cutepdf.com/"
title="cutepdf.com">http://www.cutepdf.com/</a cutepdf.com>
14 of 17 03/05/2011 03:30 μμ
Linux.com :: Turn your Linux box into a PDF-maki... http://www.linux.com/archive/feed/61826
On my system, this menu item is not present. (I have openSUSE 10.2 with KDE).
Why do you assume a Gnome desktop without saying so??
It is frustrating to create a linux document that has its links stripped out when
its printed to pdf.
Are there any apps that can retain links like Adobe Professional?
Great Article
15 of 17 03/05/2011 03:30 μμ
Linux.com :: Turn your Linux box into a PDF-maki... http://www.linux.com/archive/feed/61826
machine/</a pronetit.com>
Fonts
16 of 17 03/05/2011 03:30 μμ
Linux.com :: Turn your Linux box into a PDF-maki... http://www.linux.com/archive/feed/61826
17 of 17 03/05/2011 03:30 μμ