reportlab/pdfbase/pdfdoc.py
changeset 494 54257447cfe9
parent 484 cc20a344973c
child 500 58d712fef651
equal deleted inserted replaced
493:89dbc0b19ede 494:54257447cfe9
     1 ###############################################################################
     1 #copyright ReportLab Inc. 2000
     2 #
     2 #see license.txt for license details
     3 #	ReportLab Public License Version 1.0
     3 #history http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/reportlab/pdfbase/pdfdoc.py?cvsroot=reportlab
     4 #
     4 #$Header: /tmp/reportlab/reportlab/pdfbase/pdfdoc.py,v 1.30 2000/10/25 08:57:45 rgbecker Exp $
     5 #   Except for the change of names the spirit and intention of this
     5 __version__=''' $Id: pdfdoc.py,v 1.30 2000/10/25 08:57:45 rgbecker Exp $ '''
     6 #   license is the same as that of Python
       
     7 #
       
     8 #	(C) Copyright ReportLab Inc. 1998-2000.
       
     9 #
       
    10 #
       
    11 # All Rights Reserved
       
    12 #
       
    13 # Permission to use, copy, modify, and distribute this software and its
       
    14 # documentation for any purpose and without fee is hereby granted, provided
       
    15 # that the above copyright notice appear in all copies and that both that
       
    16 # copyright notice and this permission notice appear in supporting
       
    17 # documentation, and that the name of ReportLab not be used
       
    18 # in advertising or publicity pertaining to distribution of the software
       
    19 # without specific, written prior permission. 
       
    20 # 
       
    21 #
       
    22 # Disclaimer
       
    23 #
       
    24 # ReportLab Inc. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
       
    25 # SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS,
       
    26 # IN NO EVENT SHALL ReportLab BE LIABLE FOR ANY SPECIAL, INDIRECT
       
    27 # OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
       
    28 # OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
       
    29 # OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
       
    30 # PERFORMANCE OF THIS SOFTWARE. 
       
    31 #
       
    32 ###############################################################################
       
    33 #	$Log: pdfdoc.py,v $
       
    34 #	Revision 1.29  2000/10/19 19:15:43  rgbecker
       
    35 #	Aaron's latest update from the newslist
       
    36 #
       
    37 #	Revision 1.28  2000/10/18 16:37:22  aaron_watters
       
    38 #	undid last checkin and added an option for a default outline (different fix)
       
    39 #	
       
    40 #	Revision 1.27  2000/10/18 16:26:17  aaron_watters
       
    41 #	moved the outline preprocessing step into the format method (fixes testing error)
       
    42 #	
       
    43 #	Revision 1.26  2000/10/18 05:03:21  aaron_watters
       
    44 #	complete revision of pdfdoc.  Not finished (compression missing, testing needed)
       
    45 #	I got Robin's last change in at the last moment :)
       
    46 #	
       
    47 #	Revision 1.24  2000/09/08 10:04:08  rgbecker
       
    48 #	Paul Eddington's unix tell() returns a LongIntType bugfix
       
    49 #	
       
    50 #	Revision 1.23  2000/08/24 02:26:04  aaron_watters
       
    51 #	change to PDFLiteral to support "lazy string conversions" (to support lazy crosslinks)
       
    52 #	
       
    53 #	Revision 1.22  2000/08/09 10:57:52  rgbecker
       
    54 #	Andy's Symbol/Zapf font fix
       
    55 #	
       
    56 #	Revision 1.21  2000/06/26 15:58:22  rgbecker
       
    57 #	Simple fix to widths problem
       
    58 #	
       
    59 #	Revision 1.20  2000/06/23 17:51:22  aaron_watters
       
    60 #	/Producer (ReportLab http://www.reportlab.com) in document
       
    61 #	
       
    62 #	Revision 1.19  2000/06/01 09:44:26  rgbecker
       
    63 #	SaveToFile: only close the file if we opened it.
       
    64 #	Aggregated from types imports to module level.
       
    65 #	
       
    66 #	Revision 1.18  2000/04/28 17:33:44  andy_robinson
       
    67 #	Added font encoding support and changed default encoding to WinAnsi
       
    68 #	
       
    69 #	Revision 1.17  2000/04/28 09:08:42  rgbecker
       
    70 #	Fix typo in SaveToFile
       
    71 #	
       
    72 #	Revision 1.16  2000/04/27 18:11:56  rgbecker
       
    73 #	Dinu's SaveFile patch
       
    74 #	
       
    75 #	Revision 1.15  2000/04/25 20:19:07  aaron_watters
       
    76 #	added support for closed outline entries
       
    77 #	
       
    78 #	Revision 1.14  2000/04/18 19:50:30  aaron_watters
       
    79 #	Minor support for inPage/inForm api elimination in canvas
       
    80 #	
       
    81 #	Revision 1.13  2000/04/15 15:00:09  aaron_watters
       
    82 #	added support for addOutlineEntry0 api
       
    83 #	
       
    84 #	Revision 1.12  2000/04/06 09:52:02  andy_robinson
       
    85 #	Removed some old comments; tweaks to experimental Outline methods.
       
    86 #	
       
    87 #	Revision 1.11  2000/04/02 02:52:39  aaron_watters
       
    88 #	added support for outline trees
       
    89 #	
       
    90 #	Revision 1.10  2000/03/24 21:03:51  aaron_watters
       
    91 #	Added forms, destinations, linkages and other features
       
    92 #	
       
    93 #	Revision 1.7  2000/02/23 15:09:23  rgbecker
       
    94 #	Memory leak fixes
       
    95 #	
       
    96 #	Revision 1.6  2000/02/17 12:36:25  rgbecker
       
    97 #	added _HAVE_ZLIB to stop compression being set without zlib
       
    98 #	
       
    99 #	Revision 1.5  2000/02/17 02:07:23  rgbecker
       
   100 #	Docstring & other fixes
       
   101 #	
       
   102 #	Revision 1.4  2000/02/16 09:42:50  rgbecker
       
   103 #	Conversion to reportlab package
       
   104 #	
       
   105 #	Revision 1.3  2000/02/15 17:55:59  rgbecker
       
   106 #	License text fixes
       
   107 #	
       
   108 #	Revision 1.2  2000/02/15 15:47:09  rgbecker
       
   109 #	Added license, __version__ and Logi comment
       
   110 #	
       
   111 __version__=''' $Id: pdfdoc.py,v 1.29 2000/10/19 19:15:43 rgbecker Exp $ '''
       
   112 __doc__=""" 
     6 __doc__=""" 
   113 PDFgen is a library to generate PDF files containing text and graphics.  It is the 
     7 PDFgen is a library to generate PDF files containing text and graphics.  It is the 
   114 foundation for a complete reporting solution in Python.  
     8 foundation for a complete reporting solution in Python.  
   115 
     9 
   116 The module pdfdoc.py handles the 'outer structure' of PDF documents, ensuring that
    10 The module pdfdoc.py handles the 'outer structure' of PDF documents, ensuring that