Sha256: 96c0adbeac74b9195cf03ef8eb1f1825de0f3c1650034912e0aea0c5b4b18654

Contents?: true

Size: 393 Bytes

Versions: 8

Compression:

Stored size: 393 Bytes

Contents

# coding: utf-8
# typed: strict
# frozen_string_literal: true

class PDF::Reader

  # Filter our text/characters that are positioned outside a rectangle. Usually the page
  # MediaBox or CropBox, but could be a user specified rectangle too
  class BoundingRectangleRunsFilter

    def self.runs_within_rect(runs, rect)
      runs.select { |run| rect.contains?(run.origin) }
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
pdf-reader-2.13.0 lib/pdf/reader/bounding_rectangle_runs_filter.rb
pdf-reader-2.12.0 lib/pdf/reader/bounding_rectangle_runs_filter.rb
pdf-reader-2.11.0 lib/pdf/reader/bounding_rectangle_runs_filter.rb
pdf-reader-2.10.0 lib/pdf/reader/bounding_rectangle_runs_filter.rb
pdf-reader-2.9.2 lib/pdf/reader/bounding_rectangle_runs_filter.rb
pdf-reader-2.9.1 lib/pdf/reader/bounding_rectangle_runs_filter.rb
pdf-reader-2.9.0 lib/pdf/reader/bounding_rectangle_runs_filter.rb
pdf-reader-2.8.0 lib/pdf/reader/bounding_rectangle_runs_filter.rb