class Pdfinfo::Page

Constants

MATCHER

Attributes

height[R]
rotation[R]
width[R]

Public Class Methods

from_string(string) click to toggle source
# File lib/pdfinfo/page.rb, line 10
def self.from_string(string)
  new *string.scan(MATCHER).flatten
end
new(width, height, rotation = 0.0) click to toggle source
# File lib/pdfinfo/page.rb, line 14
def initialize(width, height, rotation = 0.0)
  @width       = width.to_f
  @height      = height.to_f
  @rotation    = rotation.to_f
end

Public Instance Methods

rotated?() click to toggle source
# File lib/pdfinfo/page.rb, line 20
def rotated?
  0 != @rotation
end