#region PDFsharp - A .NET library for processing PDF
//
// Authors:
//   Stefan Lange (mailto:Stefan.Lange@pdfsharp.com)
//
// Copyright (c) 2005-2007 empira Software GmbH, Cologne (Germany)
//
// http://www.pdfsharp.com
// http://sourceforge.net/projects/pdfsharp
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
// and/or sell copies of the Software, and to permit persons to whom the
// Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 
// DEALINGS IN THE SOFTWARE.
#endregion

using System;

namespace PdfSharp
{
  public enum PageSize
  {
    /// <summary>
    /// The width or height of the page are set manually and override the PageSize property.
    /// </summary>
    Undefined = 0,

    // ISO formats
    // see http://www.engineeringtoolbox.com/drawings-paper-sheets-sizes-25_349.html

    /// <summary>
    /// Identifies a pager sheet size of 841 mm times 1189 mm or 33.11 inch times 46.81 inch.
    /// </summary>
    A0 = 1,

    /// <summary>
    /// Identifies a pager sheet size of 594 mm times 841 mm or 23.39 inch times 33.1 inch.
    /// </summary>
    A1 = 2,

    /// <summary>
    /// Identifies a pager sheet size of 420 mm times 594 mm or 16.54 inch times 23.29 inch.
    /// </summary>
    A2 = 3,

    /// <summary>
    /// Identifies a pager sheet size of 297 mm times 420 mm or 11.69 inch times 16.54 inch.
    /// </summary>
    A3 = 4,
    
    /// <summary>
    /// Identifies a pager sheet size of 210 mm times 297 mm or 8.27 inch times 11.69 inch.
    /// </summary>
    A4 = 5,
    
    /// <summary>
    /// Identifies a pager sheet size of 148 mm times 210 mm or 5.83 inch times 8.27 inch.
    /// </summary>
    A5 = 6,

    /// <summary>
    /// Identifies a pager sheet size of 860 mm times 1220 mm.
    /// </summary>
    RA0 = 7,

    /// <summary>
    /// Identifies a pager sheet size of 610 mm times 860 mm.
    /// </summary>
    RA1 = 8,

    /// <summary>
    /// Identifies a pager sheet size of 430 mm times 610 mm.
    /// </summary>
    RA2 = 9,

    /// <summary>
    /// Identifies a pager sheet size of 305 mm times 430 mm.
    /// </summary>
    RA3 = 10,

    /// <summary>
    /// Identifies a pager sheet size of 215 mm times 305 mm.
    /// </summary>
    RA4 = 11,

    /// <summary>
    /// Identifies a pager sheet size of 153 mm times 215 mm.
    /// </summary>
    RA5 = 12,

    /// <summary>
    /// Identifies a pager sheet size of 1000 mm times 1414 mm or 39.37 inch times 55.67 inch.
    /// </summary>
    B0 = 13,

    /// <summary>
    /// Identifies a pager sheet size of 707 mm times 1000 mm or 27.83 inch times 39.37 inch.
    /// </summary>
    B1 = 14,

    /// <summary>
    /// Identifies a pager sheet size of 500 mm times 707 mm or 19.68 inch times 27.83 inch.
    /// </summary>
    B2 = 15,

    /// <summary>
    /// Identifies a pager sheet size of 353 mm times 500 mm or 13.90 inch times 19.68 inch.
    /// </summary>
    B3 = 16,

    /// <summary>
    /// Identifies a pager sheet size of 250 mm times 353 mm or 9.84 inch times 13.90 inch.
    /// </summary>
    B4 = 17,

    /// <summary>
    /// Identifies a pager sheet size of 176 mm times 250 mm or 6.93 inch times 9.84 inch.
    /// </summary>
    B5 = 18,

#if false
    /// <summary>
    /// Identifies a pager sheet size of 917 mm times 1297 mm or 36.00 inch times 51.20 inch.
    /// </summary>
    C0 = 19,

    /// <summary>
    /// Identifies a pager sheet size of 648 mm times 917 mm or 25.60 inch times 36.00 inch.
    /// </summary>
    C1 = 20,

    /// <summary>
    /// Identifies a pager sheet size of 458 mm times 648 mm or 18.00 inch times 25.60 inch.
    /// </summary>
    C2 = 21,

    /// <summary>
    /// Identifies a pager sheet size of 324 mm times 458 mm or 12.80 inch times 18.00 inch.
    /// </summary>
    C3 = 22,

    /// <summary>
    /// Identifies a pager sheet size of 229 mm times 324 mm or 9.00 inch times 12.80 inch.
    /// </summary>
    C4 = 23,

    /// <summary>
    /// Identifies a pager sheet size of 162 mm times 229 mm or 6.40 inch times 9.0 inch.
    /// </summary>
    C5 = 24,
#endif

    // Current U.S. loose paper sizes 
    // see http://www.reference.com/browse/wiki/Paper_size

    /// <summary>
    /// Identifies a pager sheet size of 10 inch times 8 inch or 254 mm times 203 mm.
    /// </summary>
    Quarto = 100,

    /// <summary>
    /// Identifies a pager sheet size of 13 inch times 8 inch or 330 mm times 203 mm.
    /// </summary>
    Foolscap = 101,

    /// <summary>
    ///  Identifies a pager sheet size of 10.5 inch times 7.25 inch or 267 mm times 184 mm.
    /// </summary>
    Executive = 102,

    /// <summary>
    /// Identifies a pager sheet size of 10.5 inch times 8 inch 267 mm times 203 mm.
    /// </summary>
    GovernmentLetter = 103,

    /// <summary>
    /// Identifies a pager sheet size of 11 inch times 8.5 inch 279 mm times 216 mm.
    /// </summary>
    Letter = 104,

    /// <summary>
    /// Identifies a pager sheet size of 14 inch times 8.5 inch 356 mm times 216 mm.
    /// </summary>
    Legal = 105,

    /// <summary>
    /// Identifies a pager sheet size of 17 inch times 11 inch or 432 mm times 279 mm.
    /// </summary>
    Ledger = 106,

    /// <summary>
    /// Identifies a pager sheet size of 17 inch times 11 inch or 432 mm times 279 mm.
    /// </summary>
    Tabloid = 107,

    /// <summary>
    /// Identifies a pager sheet size of 19.25 inch times 15.5 inch 489 mm times 394 mm.
    /// </summary>
    Post = 108,

    /// <summary>
    /// 20 ×Identifies a pager sheet size of 20 inch times 15 inch or 508 mm times 381 mm.
    /// </summary>
    Crown = 109,

    /// <summary>
    /// Identifies a pager sheet size of 21 inch times 16.5 inch 533 mm times 419 mm.
    /// </summary>
    LargePost = 110,

    /// <summary>
    /// Identifies a pager sheet size of 22.5 inch times 17.5 inch 572 mm times 445 mm.
    /// </summary>
    Demy = 111,

    /// <summary>
    /// Identifies a pager sheet size of 23 inch times 18 inch or 584 mm times 457 mm.
    /// </summary>
    Medium = 112,

    /// <summary>
    /// Identifies a pager sheet size of 25 inch times 20 inch or 635 mm times 508 mm.
    /// </summary>
    Royal = 113,

    /// <summary>
    /// Identifies a pager sheet size of 28 inch times 23 inch or 711 mm times 584 mm.
    /// </summary>
    Elephant = 114,

    /// <summary>
    /// Identifies a pager sheet size of 35 inch times 23.5 inch 889 mm times 597 mm.
    /// </summary>
    DoubleDemy = 115,

    /// <summary>
    /// Identifies a pager sheet size of 45 inch times 35 inch or × mm times 1143 × 889 mm.
    /// </summary>
    QuadDemy = 116,

    /// <summary>
    /// Identifies a pager sheet size of 8.5 inch times 5.5 inch 216 mm times 140 mm.
    /// </summary>
    STMT = 117,

    Folio = 120,
    Statement = 121,
    Size10x14 = 122,

    //A 11 × 8.5 279 × 216
    //B 17 × 11 432 × 279
    //C 22 × 17 559 × 432
    //D 34 × 22 864 × 559
    //E 44 × 34 1118 × 864
  }
}
