class PDF::Reader::MarkupPage

Attributes

content[R]

Returns the plaintext content of the page

formatted_lines[R]

Returns the formatted lines for the page as an array

lines[R]

Returns the plaintext lines for the page as an array

markup[R]

Returns the formatted content of the page

Public Class Methods

new(page) click to toggle source

Wrapper function for walking the page with the Reader::MarkupPage::PageBoldItalicReceiver receiver

# File lib/pdf/reader/markup.rb, line 29
def initialize(page)
  receiver = PageBoldItalicReceiver.new()
  page.walk(receiver)
  @content = receiver.content
  @markup = receiver.markup
  @lines = @content.lines.to_a
  @formatted_lines = @markup.lines.to_a
end