pypdflite/pdflite.py
def _output_to_file(self):
        """ Save to filepath specified on
            init. (Will throw an error if
            the document is already open).

        """
        f = open(self.filepath, 'wb')
        if not f:
            raise Exception('Unable to create output file: ', self.filepath)
        f.write(self.session.buffer)
        f.close()
def _output_to_file(self):
        """ Save to filepath specified on
            init. (Will throw an error if
            the document is already open).

        """
        f = open(self.filepath, 'wb')
        if not f:
            raise Exception('Unable to create output file: ', self.filepath)
        f.write(self.session.buffer)
        f.close()
def _output_to_file ( self ) : f = open ( self . filepath , 'wb' ) if not f : raise Exception ( 'Unable to create output file: ' , self . filepath ) f . write ( self . session . buffer ) f . close ( )
Save to filepath specified on
            init. (Will throw an error if
            the document is already open).
Save to filepath specified on init . ( Will throw an error if the document is already open ) .