Constant

Writer::PAGE_SIZES

Standard page size names. One of these may be provided to PDF::Writer.new as the :paper parameter.

Page sizes supported are:

  • 4A0, 2A0
  • A0, A1 A2, A3, A4, A5, A6, A7, A8, A9, A10
  • B0, B1, B2, B3, B4, B5, B6, B7, B8, B9, B10
  • C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10
  • RA0, RA1, RA2, RA3, RA4
  • SRA0, SRA1, SRA2, SRA3, SRA4
  • LETTER
  • LEGAL
  • FOLIO
  • EXECUTIVE
{ # :value {...}:
"4A0"   => [0, 0, 4767.87, 6740.79], "2A0"    => [0, 0, 3370.39, 4767.87],
"A0"    => [0, 0, 2383.94, 3370.39], "A1"     => [0, 0, 1683.78, 2383.94],
"A2"    => [0, 0, 1190.55, 1683.78], "A3"     => [0, 0,  841.89, 1190.55],
"A4"    => [0, 0,  595.28,  841.89], "A5"     => [0, 0,  419.53,  595.28],
"A6"    => [0, 0,  297.64,  419.53], "A7"     => [0, 0,  209.76,  297.64],
"A8"    => [0, 0,  147.40,  209.76], "A9"     => [0, 0,  104.88,  147.40],
"A10"   => [0, 0,   73.70,  104.88], "B0"     => [0, 0, 2834.65, 4008.19],
"B1"    => [0, 0, 2004.09, 2834.65], "B2"     => [0, 0, 1417.32, 2004.09],
"B3"    => [0, 0, 1000.63, 1417.32], "B4"     => [0, 0,  708.66, 1000.63],
"B5"    => [0, 0,  498.90,  708.66], "B6"     => [0, 0,  354.33,  498.90],
"B7"    => [0, 0,  249.45,  354.33], "B8"     => [0, 0,  175.75,  249.45],
"B9"    => [0, 0,  124.72,  175.75], "B10"    => [0, 0,   87.87,  124.72],
"C0"    => [0, 0, 2599.37, 3676.54], "C1"     => [0, 0, 1836.85, 2599.37],
"C2"    => [0, 0, 1298.27, 1836.85], "C3"     => [0, 0,  918.43, 1298.27],
"C4"    => [0, 0,  649.13,  918.43], "C5"     => [0, 0,  459.21,  649.13],
"C6"    => [0, 0,  323.15,  459.21], "C7"     => [0, 0,  229.61,  323.15],
"C8"    => [0, 0,  161.57,  229.61], "C9"     => [0, 0,  113.39,  161.57],
"C10"   => [0, 0,   79.37,  113.39], "RA0"    => [0, 0, 2437.80, 3458.27],
"RA1"   => [0, 0, 1729.13, 2437.80], "RA2"    => [0, 0, 1218.90, 1729.13],
"RA3"   => [0, 0,  864.57, 1218.90], "RA4"    => [0, 0,  609.45,  864.57],
"SRA0"  => [0, 0, 2551.18, 3628.35], "SRA1"   => [0, 0, 1814.17, 2551.18],
"SRA2"  => [0, 0, 1275.59, 1814.17], "SRA3"   => [0, 0,  907.09, 1275.59],
"SRA4"  => [0, 0,  637.80,  907.09], "LETTER" => [0, 0,  612.00,  792.00],
"LEGAL" => [0, 0,  612.00, 1008.00], "FOLIO"  => [0, 0,  612.00,  936.00],
"EXECUTIVE" => [0, 0,  521.86,  756.00]
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.