From: Jason Fb Date: 2009-05-20T05:25:31+09:00 Subject: Re: Error invoking PDFTK when running from TextMate I'm having a similar problem, although I'm getting the error "PDF::Toolkit::ExecutionError: Error invoking PDFTK" directly when running Ruby on the command line Here's my ruby script: require 'rubygems' require 'pdf/toolkit' require "ActiveSupport" my_pdf = PDF::Toolkit.open("/Users/jason/MTY292323-04.pdf") puts "hello" txt = my_pdf.to_text.read puts txt When I invoke this script I get the "Error invoking PDFTK" $ ruby lib/test_pdf_toolkit.rb /Library/Ruby/Gems/1.8/gems/pdf-toolkit-0.49/lib/pdf/toolkit.rb:556:in `read_data': Error invoking PDFTK (PDF::Toolkit::ExecutionError) from /Library/Ruby/Gems/1.8/gems/pdf-toolkit-0.49/lib/pdf/toolkit.rb:279:in `reload' from /Library/Ruby/Gems/1.8/gems/pdf-toolkit-0.49/lib/pdf/toolkit.rb:227:in `open' from lib/test_pdf_toolkit.rb:5 I tried making a symlink from /usr/bin/pdftk to the real pdftk executable here: /usr/local/bin/pdftk But still no luck. I'm on Mac OS X 10.5 and I installed PDFTK using the package installer (http://www.pdfhacks.com/pdftk/OSX-10.3/pdftk1.12_OSX10.3.dmg.gz) I did notice in the readme for PDFTK that it says: "NOTE: The version of pdftk installed by this package will only work on macs running OS X 10.3." -- I don't suppose it means it really won't work on 10.4 and 10.5 and if you like me, on 10.5, you really need to build it using DarwinPORTS ? (I guess I assumed it work was forward compatible). -- Posted via http://www.ruby-forum.com/.