当前位置:中国健康产业网 > 新闻 > 文章

应该怎样在iOS设备上创建PDF文件

2018-03-22 22:40:06  阅读:4863+ 来源:本站原创作者:谭维维

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 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.


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) Install Dropbox if you don't already use it.

6) 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 ~/Dropbox/documents/PDFs /var/spool/cups-pdf/ANONYMOUS

7) On your iOS device running 4.2, you can now enter an app that supports printing and choose the new PDF printer. When you print to this device, the generated file will now 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!

“如果发现本网站发布的资讯影响到您的版权,可以联系本站!同时欢迎来本站投稿!