Class: PDF::Reader::NoTextFilter
- Inherits:
-
Object
- Object
- PDF::Reader::NoTextFilter
- Defined in:
- lib/pdf/reader/no_text_filter.rb
Overview
There’s no point rendering zero-width characters
Class Method Summary collapse
Class Method Details
.exclude_empty_strings(runs) ⇒ Object
9 10 11 |
# File 'lib/pdf/reader/no_text_filter.rb', line 9 def self.exclude_empty_strings(runs) runs.reject { |run| run.text.to_s.size == 0 } end |