Class: Pdfrb::Content::Operator::MoveToNextLineShowText

Inherits:
Base
  • Object
show all
Defined in:
lib/pdfrb/content/operators/text_showing.rb

Class Method Summary collapse

Methods inherited from Base

register, serialize

Class Method Details

.invoke(processor, str) ⇒ Object



27
28
29
30
31
# File 'lib/pdfrb/content/operators/text_showing.rb', line 27

def self.invoke(processor, str)
  leading = processor.graphics_state.text_state.leading
  processor.move_text(0, -leading, set_leading: false)
  processor.show_text(str.to_s)
end

.nameObject



26
# File 'lib/pdfrb/content/operators/text_showing.rb', line 26

def self.name; "'"; end