rjb/iText issue after upgrade

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,074
Latest member
StanleyFra

Latest Threads

Top