Class: PDF::Reader::ZeroWidthRunsFilter

Inherits:
Object
  • Object
show all
Defined in:
lib/pdf/reader/zero_width_runs_filter.rb

Overview

There’s no point rendering zero-width characters

Class Method Summary collapse

Class Method Details

.exclude_zero_width_runs(runs) ⇒ Object



9
10
11
# File 'lib/pdf/reader/zero_width_runs_filter.rb', line 9

def self.exclude_zero_width_runs(runs)
  runs.reject { |run| run.width == 0 }
end