1 /*
2  * $Id: PageSize.java,v 1.26 2002/06/20 13:30:24 blowagie Exp $
3  * $Name:  $
4  *
5  * Copyright 1999, 2000, 2001, 2002 by Bruno Lowagie.
6  *
7  *
8  * The Original Code is 'iText, a free JAVA-PDF library'.
9  *
10  * The Initial Developer of the Original Code is Bruno Lowagie. Portions created by
11  * the Initial Developer are Copyright (C) 1999, 2000, 2001, 2002 by Bruno Lowagie.
12  * All Rights Reserved.
13  * Co-Developer of the code is Paulo Soares. Portions created by the Co-Developer
14  * are Copyright (C) 2000, 2001, 2002 by Paulo Soares. All Rights Reserved.
15  *
16  * Contributor(s): all the names of the contributors are added in the source code
17  * where applicable.
18  *
19  *
20  * This library is free software; you can redistribute it and/or
21  * modify it under the terms of the GNU Library General Public
22  * License as published by the Free Software Foundation; either
23  * version 2 of the License, or (at your option) any later version.
24  *
25  * This library is distributed in the hope that it will be useful,
26  * but WITHOUT ANY WARRANTY; without even the implied warranty of
27  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
28  * Library General Public License for more details.
29  *
30  * You should have received a copy of the GNU Library General Public
31  * License along with this library; if not, write to the
32  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
33  * Boston, MA  02110-1301, USA.
34  *
35  *
36  * This library is free software; you can redistribute it and/or
37  * modify it under the terms of the GNU Library General Public
38  * License as published by the Free Software Foundation; either
39  * version 2 of the License, or (at your option) any later version.
40  *
41  * This library is distributed in the hope that it will be useful,
42  * but WITHOUT ANY WARRANTY; without even the implied warranty of
43  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
44  * Library General Public License for more details.
45  *
46  * You should have received a copy of the GNU Library General Public
47  * License along with this library; if not, write to the
48  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
49  * Boston, MA  02110-1301, USA.
50  *
51  *
52  * If you didn't download this code from the following link, you should check if
53  * you aren't using an obsolete version:
54  * http://www.lowagie.com/iText/
55  */
56 
57 package com.gitlab.pdftk_java.com.lowagie.text;
58 
59 /**
60  * The <CODE>PageSize</CODE>-object contains a number of rectangles representing the most common papersizes.
61  *
62  * @see		Rectangle
63  */
64 
65 public class PageSize {
66 
67     // membervariables
68 
69 /** This is the letter format */
70     public static final Rectangle LETTER = new Rectangle(612,792);
71 
72 /** This is the note format */
73     public static final Rectangle NOTE = new Rectangle(540,720);
74 
75 /** This is the legal format */
76     public static final Rectangle LEGAL = new Rectangle(612,1008);
77 
78 /** This is the a0 format */
79     public static final Rectangle A0 = new Rectangle(2384,3370);
80 
81 /** This is the a1 format */
82     public static final Rectangle A1 = new Rectangle(1684,2384);
83 
84 /** This is the a2 format */
85     public static final Rectangle A2 = new Rectangle(1190,1684);
86 
87 /** This is the a3 format */
88     public static final Rectangle A3 = new Rectangle(842,1190);
89 
90 /** This is the a4 format */
91     public static final Rectangle A4 = new Rectangle(595,842);
92 
93 /** This is the a5 format */
94     public static final Rectangle A5 = new Rectangle(421,595);
95 
96 /** This is the a6 format */
97     public static final Rectangle A6 = new Rectangle(297,421);
98 
99 /** This is the a7 format */
100     public static final Rectangle A7 = new Rectangle(210,297);
101 
102 /** This is the a8 format */
103     public static final Rectangle A8 = new Rectangle(148,210);
104 
105 /** This is the a9 format */
106     public static final Rectangle A9 = new Rectangle(105,148);
107 
108 /** This is the a10 format */
109     public static final Rectangle A10 = new Rectangle(74,105);
110 
111 /** This is the b0 format */
112     public static final Rectangle B0 = new Rectangle(2836,4008);
113 
114 /** This is the b1 format */
115     public static final Rectangle B1 = new Rectangle(2004,2836);
116 
117 /** This is the b2 format */
118     public static final Rectangle B2 = new Rectangle(1418,2004);
119 
120 /** This is the b3 format */
121     public static final Rectangle B3 = new Rectangle(1002,1418);
122 
123 /** This is the b4 format */
124     public static final Rectangle B4 = new Rectangle(709,1002);
125 
126 /** This is the b5 format */
127     public static final Rectangle B5 = new Rectangle(501,709);
128 
129 /** This is the archE format */
130     public static final Rectangle ARCH_E = new Rectangle(2592,3456);
131 
132 /** This is the archD format */
133     public static final Rectangle ARCH_D = new Rectangle(1728,2592);
134 
135 /** This is the archC format */
136     public static final Rectangle ARCH_C = new Rectangle(1296,1728);
137 
138 /** This is the archB format */
139     public static final Rectangle ARCH_B = new Rectangle(864,1296);
140 
141 /** This is the archA format */
142     public static final Rectangle ARCH_A = new Rectangle(648,864);
143 
144 /** This is the flsa format */
145     public static final Rectangle FLSA = new Rectangle(612,936);
146 
147 /** This is the flse format */
148     public static final Rectangle FLSE = new Rectangle(612,936);
149 
150 /** This is the halfletter format */
151     public static final Rectangle HALFLETTER = new Rectangle(396,612);
152 
153 /** This is the 11x17 format */
154     public static final Rectangle _11X17 = new Rectangle(792,1224);
155 
156 /** This is the ledger format */
157     public static final Rectangle LEDGER = new Rectangle(1224,792);
158 }
159