A
Andrea Campagna
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:
arser.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 Campagna
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:
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 Campagna