Hello RoR and iText users:
I have been using iText successfully with
I just upgraded to
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)?