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