View Single Post
Old 04-05-2007, 02:53 PM   #1
sammykrupa
Reader of the Reader
sammykrupa doesn't littersammykrupa doesn't litter
 
Posts: 103
Karma: 107
Join Date: Apr 2006
Device: Sony Reader PRS-500
PDFRead on Mac OS X -- PDFRasterFarian for OS X!

ashkulz's amazing PDFRasterFarian-style program named PDFRead is working on Mac OS X 10.4! See his post for details on PDFRead.

I have only tested PDFRead on Mac OS X, and only when generating files for the Sony Reader.

Here is how to get it working on Mac OS X 10.4:

Before you do anything, you should have Apple's developer tools installed ( http://developer.apple.com/tools/ ).

First, download the latest 2.4.3 python from http://www.python.org/download/releases/2.4.3/

The Mac OS X installer application puts a big "MacPython 2.4" folder in your applications folder. Go into that folder and double-click the "Update Shell Profile.command" file.

Next, install pdftk ( http://www.pdfhacks.com/pdftk/#packages )

Now install fink from http://finkproject.org/

After fink is installed, type this into the command line (the Terminal application):

Code:
sudo apt-get install xpdf imagemagick ghostscript ghostscript-fonts
Now, download the latest PIL source from http://www.pythonware.com/products/pil/

cd into the directory of the source code you just downloaded, then run this command:

Code:
sudo python setup.py install
Download the PDFRead v4 source code:
https://sourceforge.net/project/show...ckage_id=91453

Extract it somewhere. The above directory will contain a command line program in Python, so you can execute it via:
Code:
python src/pdfread.py <options> pdf-file
Use the same options as detailed in ashkulz's post. However, note that you will have to copy the output directory name shown and navigate to it yourself.
If your not running python 2.5, download the ElementTree library from here:

http://effbot.org/downloads/elementt...0050316.tar.gz

and extract it and copy the folder 'elementtree' to the same location as pdfread.py.

The last step is to download the file named "pdfread_py.txt" that is attached to this message and rename it to pdfread.py and replace the original pdfread.py file with it.

Now your done!

See ashkulz's original post for details about PDFRead!
Attached Files
File Type: txt pdfread_py.txt (16.1 KB, 1132 views)

Last edited by sammykrupa; 04-06-2007 at 11:06 AM.
sammykrupa is offline   Reply With Quote