Hi to all,
i’m trying to make a pdf parser. This is my code and the script seems to
work…
require ‘rpdf2txt/parser’
require ‘rpdf2txt/default_handler’
parser = Rpdf2txt::Parser.new(File.read(‘filename.pdf’))
output = File.open(‘prova.txt’, ‘w’)
handler = Rpdf2txt::SimpleHandler.new(output)
parser.extract_text(handler)
The problem is that the file ‘prova.txt’ created is empty. I’ve not
found documentation about this library so i don’t know what i’m doing
wrong.
Can anybody help me??
thanks in advance
Andrea C.
Ciao Andrea
On Dec 11, 2007 10:21 AM, Andrea C. [email protected] wrote:
parser.extract_text(handler)
That looks right - if you can you send me your PDF off-list I’ll have a
look.
cheers
Hannes
parser.extract_text(handler)
That looks right - if you can you send me your PDF off-list I’ll have a look.
cheers
Hannes
Ciao Hannes,
i’ve send u an email with the PDF document that i’m using to make the
tests, do you mean this???
cheers
Andrea
parser.extract_text(handler)
That looks right - if you can you send me your PDF off-list I’ll have a look.
cheers
Hannes
Ciao Hannes,
i’ve send u an email with the PDF document that i’m using to make the
tests, do you mean this???
cheers
Andrea
parser.extract_text(handler)
That looks right - if you can you send me your PDF off-list I’ll have a look.
cheers
Hannes
Ciao Hannes,
i’ve send u an email with the PDF document that i’m using to make the
tests, do you mean this???
cheers
Andrea
parser.extract_text(handler)
That looks right - if you can you send me your PDF off-list I’ll have a look.
cheers
Hannes
Ciao Hannes,
i’ve send u an email with the PDF document that i’m using to make the
tests, do you mean this???
cheers
Andrea
Good Morning!
On Dec 13, 2007 9:30 AM, [email protected] [email protected]
wrote:
i’ve send u an email with the PDF document that i’m using to make the
tests, do you mean this???
Interesting - this is the very first PDF-Document I’ve seen that uses
ASCII85 Encoding.
A simple ASCII85 Decoder, anyone?
Andrea: you’ll have to give me some time on this one - I’ll get back
to you with a patch…
Cheers
Hannes