File: xobject.rb

package info (click to toggle)
ruby-pdf-inspector 1.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 176 kB
  • sloc: ruby: 293; makefile: 2
file content (19 lines) | stat: -rw-r--r-- 394 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
module PDF
  class Inspector
    class XObject < Inspector
      attr_accessor :page_xobjects, :xobject_streams

      def initialize
        @page_xobjects = []
        @xobject_streams = {}
      end

      def page=(page)
        @page_xobjects << page.xobjects
        page.xobjects.each do |label, stream|
          @xobject_streams[label] = stream
        end
      end
    end
  end
end