module ImgToPdf::Unit

Public Instance Methods

convert_mm_to_pt(mm) click to toggle source

@param [Float] mm source length. millimeters. @return [Float] destination length. points.

# File lib/img_to_pdf/unit.rb, line 8
def convert_mm_to_pt(mm)
  return mm / 25.4 * 72
end
convert_pt_to_in(pt) click to toggle source

@param [Float] pt source length. points. @return [Float] destination length. inches.

# File lib/img_to_pdf/unit.rb, line 14
def convert_pt_to_in(pt)
  return pt / 72
end