lib/fillable-pdf.rb in fillable-pdf-0.9.1 vs lib/fillable-pdf.rb in fillable-pdf-0.9.2
- old
+ new
@@ -20,10 +20,10 @@
def initialize(file_path)
raise IOError, "File at `#{file_path}' is not found" unless File.exist?(file_path)
@file_path = file_path
begin
@byte_stream = BYTE_STREAM.new
- @pdf_reader = PDF_READER.new @file_path
+ @pdf_reader = PDF_READER.new @file_path.to_s
@pdf_writer = PDF_WRITER.new @byte_stream
@pdf_doc = PDF_DOCUMENT.new @pdf_reader, @pdf_writer
@pdf_form = PDF_ACRO_FORM.getAcroForm(@pdf_doc, true)
@form_fields = @pdf_form.getFormFields
rescue StandardError => e