reportlab/lib/pagesizes.py
changeset 494 54257447cfe9
parent 270 01635bde618e
child 684 2a43c747527a
equal deleted inserted replaced
493:89dbc0b19ede 494:54257447cfe9
     1 #!/bin/env python
     1 #!/bin/env python
     2 ###############################################################################
     2 #copyright ReportLab Inc. 2000
     3 #
     3 #see license.txt for license details
     4 #	ReportLab Public License Version 1.0
     4 #history http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/reportlab/lib/pagesizes.py?cvsroot=reportlab
     5 #
     5 #$Header: /tmp/reportlab/reportlab/lib/pagesizes.py,v 1.5 2000/10/25 08:57:45 rgbecker Exp $
     6 #   Except for the change of names the spirit and intention of this
       
     7 #   license is the same as that of Python
       
     8 #
       
     9 #	(C) Copyright ReportLab Inc. 1998-2000.
       
    10 #
       
    11 #   adapted with permission from PIDDLE, original author Joe Strout
       
    12 #
       
    13 # All Rights Reserved
       
    14 #
       
    15 # Permission to use, copy, modify, and distribute this software and its
       
    16 # documentation for any purpose and without fee is hereby granted, provided
       
    17 # that the above copyright notice appear in all copies and that both that
       
    18 # copyright notice and this permission notice appear in supporting
       
    19 # documentation, and that the name of ReportLab not be used
       
    20 # in advertising or publicity pertaining to distribution of the software
       
    21 # without specific, written prior permission. 
       
    22 # 
       
    23 #
       
    24 # Disclaimer
       
    25 #
       
    26 # ReportLab Inc. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
       
    27 # SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS,
       
    28 # IN NO EVENT SHALL ReportLab BE LIABLE FOR ANY SPECIAL, INDIRECT
       
    29 # OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
       
    30 # OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
       
    31 # OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
       
    32 # PERFORMANCE OF THIS SOFTWARE. 
       
    33 #
       
    34 ###############################################################################
       
    35 #	$Log: pagesizes.py,v $
       
    36 #	Revision 1.4  2000/06/14 21:17:30  andy_robinson
       
    37 #	Some relative imports fixed
       
    38 #
       
    39 #	Revision 1.3  2000/04/26 11:13:28  andy_robinson
       
    40 #	Fixed some broken pagesizes and added a
       
    41 #	landscape() function.
       
    42 #	
       
    43 #	Revision 1.2  2000/03/08 13:40:49  rgbecker
       
    44 #	Added DEFAULT_PAGE_SIZE at end
       
    45 #	
       
    46 #	Revision 1.1  2000/03/08 12:55:07  andy_robinson
       
    47 #	initial checkin
       
    48 #	
       
    49 
     6 
    50 """This module defines a few common page sizes in points (1/72 inch).
     7 """This module defines a few common page sizes in points (1/72 inch).
    51 To be expanded to include things like label sizes, envelope windows
     8 To be expanded to include things like label sizes, envelope windows
    52 etc."""
     9 etc."""
    53 __version__=''' $Id: pagesizes.py,v 1.4 2000/06/14 21:17:30 andy_robinson Exp $ '''
    10 __version__=''' $Id: pagesizes.py,v 1.5 2000/10/25 08:57:45 rgbecker Exp $ '''
    54 
    11 
    55 from reportlab.lib.units import cm, inch
    12 from reportlab.lib.units import cm, inch
    56 
    13 
    57 _W, _H = (21*cm, 29.7*cm)
    14 _W, _H = (21*cm, 29.7*cm)
    58 
    15