Class: Pdfrb::Content::Operator::SetSpacingMoveToShowText
- Defined in:
- lib/pdfrb/content/operators/text_showing.rb
Class Method Summary collapse
Methods inherited from Base
Class Method Details
.invoke(processor, word_spacing, char_spacing, str) ⇒ Object
37 38 39 40 41 42 43 |
# File 'lib/pdfrb/content/operators/text_showing.rb', line 37 def self.invoke(processor, word_spacing, char_spacing, str) processor.update_text_state(word_spacing: word_spacing.to_f, char_spacing: char_spacing.to_f) leading = processor.graphics_state.text_state.leading processor.move_text(0, -leading, set_leading: false) processor.show_text(str.to_s) end |
.name ⇒ Object
36 |
# File 'lib/pdfrb/content/operators/text_showing.rb', line 36 def self.name; "\""; end |