Skip to Content

How-To: Create PDFs from your iOS device

AirPrintAirPrint may not be officially implemented in Mac OS X yet, but the feature remains present in the latest iOS 4.2 GM available to developers. For those who do have iOS 4.2 GM installed on their iDevices and are hoping to enable AirPrint, we've got a handy guide for you. Or you can also can use the AirPrint Hacktivator to get the job done.

That all covers printing to paper from iOS, but I've decided to take it a step further for those who want to "print" but remain paperless: Print to a PDF. And not only print to a PDF, but then immediately have that PDF accessible to the same device.

Here are some rather simple steps to get your PDF on.

cups-pdf
1) I'm going to assume you've already upgraded your system to 10.6.5 and that you're running the latest iOS 4.2 GM on your device (or the official version, when it's eventually released).

2) If you haven't already, Hacktivate AirPrint on the system you'll use to serve printers. That is, unless Apple re-activates the feature by the time you read this. Either way, you'll need AirPrint up and running. Reboot.

3) Install CUPS-PDF on the AirPrint server system. This will allow you to create a PDF "printer" on the system. Installation is rather painless.

4) Create the CUPS-PDF printer by using System Preferences->Fax & Print. Click the '+' sign to add a new printer, and you'll see a similar dialog box as pictured to the right (minus my Canon printer). Select CUPS-PDF and name the printer whatever you want, using the Generic PostScript Printer selection. Click 'Add'.

5) With the new "printer" selected in the 'Print & Fax' screen, check the 'Share this printer on the network' box.

5.5) On your iOS device running 4.2, you can now enter an app that supports printing and choose the new PDF printer. Print something to it, to create the directory we'll move later.

6) Install Dropbox if you don't already use it.

7) Using the Terminal, you're going to move aside the original directory that CUPS-PDF uses to store PDFs and have them instead appear in your Dropbox:

$ mkdir ~/Dropbox/Documents/PDFs
$ sudo mv /var/spool/cups-pdf/ANONYMOUS /var/spool/cups-pdf/ANONYMOUS-orig
$ sudo ln -s /var/spool/cups-pdf/ANONYMOUS ~/Dropbox/Documents/PDFs

8) Now when you print to this device, the generated file will appear in your Dropbox (in the folder you specified in Step 6). Open with the Dropbox app, GoodReader, or whatever else you're using that supports Dropbox integration, and voila, a PDF printout of whatever you were looking at, good to go!



Categories

How-tos iOS OS X

AirPrint may not be officially implemented in Mac OS X yet, but the feature remains present in the latest iOS 4.2 GM available to...
 

Add a Comment

*0 / 3000 Character Maximum Comment Moderation Enabled. Your comment will appear after it is cleared by an editor.

27 Comments

Filter by:
skidmore

to get it to work i had to change step 7 entries to:

$ sudo mv /var/spool/cups-pdf/ANONYMOUS /var/spool/cups-pdf/ANONYMOUS-orig
$ sudo ln -s /var/spool/cups-pdf/ANONYMOUS/ ~/Dropbox/PDFs

basically, don't create the PDFs folder in Dropbox (i.e., nix the first part of the step), and add the slash after ANONYMOUS in the last step (the original second part is the unchanged). this will create a folder alias in the specified Dropbox directory (i wanted it in ~/Dropbox/PDFs, not ~/Dropbox/Documents/PDFs). Dropbox recognizes it as a folder and syncs its contents. you can check it via the dropbox.com web interface. hope that helps those who were having trouble.

January 01 2011 at 12:00 AM Report abuse rate up rate down Reply
Alapadula

I cant make it work.....

December 08 2010 at 5:06 PM Report abuse rate up rate down Reply
Bob Horn

I just found a new app called Save2PDF and guess what it does?? I bought it and so far it is working great, no hassle at all just makes PDFs right on the iPad without sending it through a computer, for $5 it is way easier!!

November 24 2010 at 3:28 AM Report abuse rate up rate down Reply
David

Is there a way to make this work if one is not on your local network? I have a VPN set up on my router so when I am out I have tried connecting via VPN on my iPhone but when I go to print it doesn't see the PDF printer on the home computer. If I put a VPN server on my mac rather than router would that make this work? Is there anyway to make it work when one has the computer on at home but the ability to print PDF when out?

November 19 2010 at 1:10 AM Report abuse rate up rate down Reply
Gabriel

That's a really cool feature! But I have a problem...

Printing from my iPad to the CUPS-PDF printer didn't create an ANONYMOUS folder inside the cups-pdf folder. Inside this folder, I've got a folder called "SPOOL" (empty) and a folder called "guest" but I don't have permissions to view the content.

I'm quite sure that printing from the iPad worked, as I could see in my printer list (in the preferences on the mac) that the CUPS-PDF printer was busy printing at that moment.

I tried to print from my mac to this new printer, it created inside this cups-pdf folder a folder with my username, as other people describe in the comments, and the document gets inside it, so the printer is working.

Tried to write the three terminal lines replacing "ANONYMOUS" with "guest", thinking that maybe it was the directory created by jobs coming from my iPad: now, I've got in my Dropbox an alias to my "guest" folder, that's great, but still can't look inside because of permissions :-)

Anyone can help?

Thanks a lot! Would love to generate .pdf from my iPad!!!

November 17 2010 at 7:39 PM Report abuse rate up rate down Reply
Dave Howell

Seems like a lot of work when you could just install Air Sharing Pro or Air Sharing HD and print from there.

November 16 2010 at 10:50 PM Report abuse rate up rate down Reply
Mike

sounds good.... but too bad it just doesn't work for me. I used the hacktivator, rebooted, but my iPad still won't see the shared printer. I made sure it is permitted through the Mac firewall too.

November 16 2010 at 8:15 PM Report abuse rate up rate down Reply
2 replies to Mike's comment
Jeff

Check to see if that printer is shared - I messed that up as well.

November 16 2010 at 8:18 PM Report abuse rate up rate down Reply
Mike

No, its definitely shared. I've tried un-sharing it, turning off sharing all together, and then re-sharing it. No luck. Maybe this is why AirPrint may be delayed in Mac OS.

November 16 2010 at 8:59 PM Report abuse rate up rate down Reply
Jeff

I think the ln command is backwards - I had to do it this way

sudo ln [-fhinsv] source_file target_dir

This puts a file(folder link) in the Dropbox folder you created pointing to the spool folder

November 16 2010 at 8:14 PM Report abuse rate up rate down Reply
tuaw

You have the ln -s command backwards. Should be:
sudo ln -s /var/spool/cups-pdf/ANONYMOUS ~/Dropbox/Documents/PDF

November 16 2010 at 8:05 PM Report abuse rate up rate down Reply
NyxoLyno

This is a horrible way to make PDFs on an iOS device.

Enabling AirPrint? Assuming we all have an iOS that isn't even released yet? Opening terminal and changing settings?

There is a much faster and easier way to do this without any skills involved and I'm surprised the author missed this! Joliprint!

Here are MY steps to create PDFs on an iOS the fast and easy way!

1. Copy the address of a web page you want to PDF.

2. Go to www.Joliprint.com

3. Paste your link in the address box on the page.

4. Hit the "Joliprint it !" button

5. That's it! Your PDF will open, and you can save it in iBooks or any other app you have that supports PDF.

It really is simple. Best of all, it removes all ads and other garbage on the site and presents it in a nice, clean, two-column format.

November 16 2010 at 8:03 PM Report abuse rate up rate down Reply
3 replies to NyxoLyno's comment
Buy an ad here

Tweets

© 2012 AOL Inc. All Rights Reserved.