Raimon Fs wrote:
I have some simple code that works perfectly from irb and from RoR, but
when I try to run it from TextMate (command R) I’m getting always the
PDF::Toolkit::ExecutionError: Error invoking PDFTK
my_pdf = PDF::Toolkit.open(absolute_path_filename)
Any idea of what I’m missing ?
A year later and still no resolution is posted?
I am having the same problem as those above. I am using winxp, ruby 1.91
and pdftoolkit 0.49
Just like the above, if I type the code into irb it works just fine. If
I run it in an IDE(I use netbeans) then it returns the following error:
read_data': Error invoking PDFTK (PDF::Toolkit::ExecutionError) from C:/Ruby19/lib/ruby/gems/1.9.1/gems/pdf-toolkit-0.49/lib/pdf/toolkit.rb:279:inreload’
open' from H:/NetBeansProjects/Beeprocessoradvanced/lib/main.rb:12:in’
Someone PLEASE give me an idea of how to resolve this problem. The worst
part is this code is part of a program that worked only a week ago. I
don’t know what changed but I went back to run the program and got this
outcounter = 0
htmlcounter = 0
inputarray = 
outputarray = 
my_pdf = PDF::Toolkit.open(‘c:\process\b’)
The above code returns the error on the line “my_pdf =
PDF::Toolkit.open(‘c:\process\b’)” just after it outputs “0”.