Class: HexaPDF::Content::SmartTextExtractor::TextRunProcessor

Inherits:
Processor
  • Object
show all
Includes:
TextRunCollector
Defined in:
lib/hexapdf/content/smart_text_extractor.rb

Overview

This processor class is used when layouting the text through HexaPDF::Type::Page#extract_text.

Constant Summary

Constants inherited from Processor

Processor::OPERATOR_MESSAGE_NAME_MAP

Instance Attribute Summary

Attributes included from TextRunCollector

#text_runs

Attributes inherited from Processor

#graphics_object, #graphics_state, #operators, #resources

Instance Method Summary collapse

Methods included from TextRunCollector

#initialize

Methods inherited from Processor

#initialize, #process

Instance Method Details

#show_text(str) ⇒ Object Also known as: show_text_with_positioning



127
128
129
# File 'lib/hexapdf/content/smart_text_extractor.rb', line 127

def show_text(str)
  collect_text_runs(decode_text_with_positioning(str))
end