Method: MuPDF::Page.parse_art_box

Defined in:
lib/mupdf/page.rb

.parse_art_box(text) ⇒ MuPDF::Box?

Parameters:

  • text (String)

Returns:



52
53
54
55
56
57
# File 'lib/mupdf/page.rb', line 52

def self.parse_art_box(text)
  match = ART_BOX_REGEX.match(text)
  return unless match

  MuPDF::Box.parse(match[:content], kind: :art)
end