D
Dan Sadaka
Hello RoR and iText users:
I have been using iText successfully with
Rails 2.3.2
Ruby 1.8.6
rjb 1.1.7
I just upgraded to
Rails 2.3.5
Ruby 1.8.7
rjb 1.3.4-x86-mswin32-60
Now, whenever I try a pdfreader.new(pdfFileName)
I get IOException: PDF header signature not found.
The file header is fine (first line starts with %PDF ... as it should).
It's not the file but a problem in reading files at all I believe.
The file exists, but I noticed that if I send a non-existent file name
to pdfreader.new I get the same error. So, I don't know if it can't
find the file (I've tried both relative and absolute path names) or if
there is something else going wrong.
I upgraded by creating an entirely new Ruby/Rails directory so it's
possibly I left something out. I've tried older versions of the iText
jar but I haven't tried back revving rjb.
If I install an older rjb, how do I get require to load that specific
version (without hardcoded path)?
Any ideas?
TIA,
Dan
I have been using iText successfully with
Rails 2.3.2
Ruby 1.8.6
rjb 1.1.7
I just upgraded to
Rails 2.3.5
Ruby 1.8.7
rjb 1.3.4-x86-mswin32-60
Now, whenever I try a pdfreader.new(pdfFileName)
I get IOException: PDF header signature not found.
The file header is fine (first line starts with %PDF ... as it should).
It's not the file but a problem in reading files at all I believe.
The file exists, but I noticed that if I send a non-existent file name
to pdfreader.new I get the same error. So, I don't know if it can't
find the file (I've tried both relative and absolute path names) or if
there is something else going wrong.
I upgraded by creating an entirely new Ruby/Rails directory so it's
possibly I left something out. I've tried older versions of the iText
jar but I haven't tried back revving rjb.
If I install an older rjb, how do I get require to load that specific
version (without hardcoded path)?
Any ideas?
TIA,
Dan