class PDF::Reader::BoundingRectangleRunsFilter
Filter
our text/characters that are positioned outside a rectangle. Usually the page MediaBox or CropBox, but could be a user specified rectangle too
Public Class Methods
runs_within_rect(runs, rect)
click to toggle source
# File lib/pdf/reader/bounding_rectangle_runs_filter.rb, line 11 def self.runs_within_rect(runs, rect) runs.select { |run| rect.contains?(run.origin) } end