class SiSU_Parts_TeXpdf::TeX
Public Class Methods
new(papersize='')
click to toggle source
# File lib/sisu/texpdf_parts.rb, line 83 def initialize(papersize='') @papersize=papersize end
Public Instance Methods
a4()
click to toggle source
# File lib/sisu/texpdf_parts.rb, line 86 def a4 def portrait def w 160 end def h 228 end def img_px 450 end self end def landscape def w 238 end def h 160 end def img_px 300 end self end self end
a5()
click to toggle source
# File lib/sisu/texpdf_parts.rb, line 194 def a5 def portrait def w 112 end def h 162 end def img_px 280 end self end def landscape def w 152 end def h 100 end def img_px 190 end self end self end
b5()
click to toggle source
# File lib/sisu/texpdf_parts.rb, line 167 def b5 def portrait def w 140 end def h 204 end def img_px 356 end self end def landscape def w 200 end def h 130 end def img_px 260 end self end self end
dimensions()
click to toggle source
# File lib/sisu/texpdf_parts.rb, line 221 def dimensions case @papersize when /a4/ then a4 when /letter/ then letter when /legal/ then legal when /b5/ then b5 when /a5/ then a5 else a4 end end
h()
click to toggle source
# File lib/sisu/texpdf_parts.rb, line 91 def h 228 end
img_px()
click to toggle source
# File lib/sisu/texpdf_parts.rb, line 94 def img_px 450 end
landscape()
click to toggle source
# File lib/sisu/texpdf_parts.rb, line 99 def landscape def w 238 end def h 160 end def img_px 300 end self end
legal()
click to toggle source
# File lib/sisu/texpdf_parts.rb, line 140 def legal def portrait def w 168 end def h 286 end def img_px 474 end self end def landscape def w 296 end def h 166 end def img_px 420 end self end self end
letter()
click to toggle source
# File lib/sisu/texpdf_parts.rb, line 113 def letter def portrait def w 166 end def h 212 end def img_px 468 end self end def landscape def w 226 end def h 166 end def img_px 290 end self end self end
portrait()
click to toggle source
# File lib/sisu/texpdf_parts.rb, line 87 def portrait def w 160 end def h 228 end def img_px 450 end self end
w()
click to toggle source
# File lib/sisu/texpdf_parts.rb, line 88 def w 160 end