reportlab/pdfgen/pdfimages.py
changeset 494 54257447cfe9
parent 491 6bf7da76b8fd
child 554 ed6c96d22d1e
equal deleted inserted replaced
493:89dbc0b19ede 494:54257447cfe9
     1 __version__=''' $Id: pdfimages.py,v 1.2 2000/10/24 10:47:14 rgbecker Exp $ '''
     1 #copyright ReportLab Inc. 2000
       
     2 #see license.txt for license details
       
     3 #history http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/reportlab/pdfgen/pdfimages.py?cvsroot=reportlab
       
     4 #$Header: /tmp/reportlab/reportlab/pdfgen/pdfimages.py,v 1.3 2000/10/25 08:57:45 rgbecker Exp $
       
     5 __version__=''' $Id: pdfimages.py,v 1.3 2000/10/25 08:57:45 rgbecker Exp $ '''
     2 __doc__="""
     6 __doc__="""
     3 Image functionality sliced out of canvas.py for generalization
     7 Image functionality sliced out of canvas.py for generalization
     4 """
     8 """
     5 import os
     9 import os
     6 import string
    10 import string
   132         # self._code.extend(imagedata) if >=python-1.5.2
   136         # self._code.extend(imagedata) if >=python-1.5.2
   133         for line in imagedata:
   137         for line in imagedata:
   134             canvas._code.append(line)
   138             canvas._code.append(line)
   135 
   139 
   136         canvas._code.append('Q')
   140         canvas._code.append('Q')
   137 
       
   138 ###############################################################################
       
   139 #
       
   140 #	ReportLab Public License Version 1.0
       
   141 #
       
   142 #   Except for the change of names the spirit and intention of this
       
   143 #   license is the same as that of Python
       
   144 #
       
   145 #	(C) Copyright ReportLab Inc. 1998-2000.
       
   146 #
       
   147 #
       
   148 # All Rights Reserved
       
   149 #
       
   150 # Permission to use, copy, modify, and distribute this software and its
       
   151 # documentation for any purpose and without fee is hereby granted, provided
       
   152 # that the above copyright notice appear in all copies and that both that
       
   153 # copyright notice and this permission notice appear in supporting
       
   154 # documentation, and that the name of ReportLab not be used
       
   155 # in advertising or publicity pertaining to distribution of the software
       
   156 # without specific, written prior permission. 
       
   157 # 
       
   158 #
       
   159 # Disclaimer
       
   160 #
       
   161 # ReportLab Inc. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
       
   162 # SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS,
       
   163 # IN NO EVENT SHALL ReportLab BE LIABLE FOR ANY SPECIAL, INDIRECT
       
   164 # OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
       
   165 # OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
       
   166 # OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
       
   167 # PERFORMANCE OF THIS SOFTWARE. 
       
   168 #
       
   169 ###############################################################################
       
   170 #	$Log: pdfimages.py,v $
       
   171 #	Revision 1.2  2000/10/24 10:47:14  rgbecker
       
   172 #	Fix zlib import bug
       
   173 #
       
   174 #	Revision 1.1  2000/10/24 02:05:22  aaron_watters
       
   175 #	image functionality factored out of canvas.py initial checkin. tests pass
       
   176 #	
       
   177 #