Skip to content

undefined method `objects' for #<PDF::Reader::FormXObject #522

@vnazarenko

Description

@vnazarenko

I'm trying to extract images from pdf file, and use code from examples section, and i'm getting this error:

/Users/vnazarenko/.rvm/gems/ruby-2.7.7/gems/pdf-reader-2.11.0/lib/pdf/reader/form_xobject.rb:33:in `initialize': undefined method `objects' for #<PDF::Reader::FormXObject:0x0000000107597f60> (NoMethodError)
Did you mean?  xobjects
               xobject

in this line:

        when :Form then
          count = process_page(PDF::Reader::FormXObject.new(page, stream), count)
        end

What should i do?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions