pypdflite/pdflite.py
def _put_resource_dict(self):
        """ Creates PDF reference to resource objects.

        """
        self.session._add_object(2)
        self.session._out('<<')
        self.session._out('/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]')
        self.session._out('/Font <<')
        for font in self.document.fonts:
            self.session._out('/F%s %s 0 R' % (font.index, font.number))
        self.session._out('>>')
        if self.document.images:
            self.session._out('/XObject <<')
            for image in self.document.images:
                self.session._out('/I%s %s 0 R' % (image.index, image.number))
            self.session._out('>>')
        self.session._out('>>')
        self.session._out('endobj')
def _put_resource_dict(self):
        """ Creates PDF reference to resource objects.

        """
        self.session._add_object(2)
        self.session._out('<<')
        self.session._out('/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]')
        self.session._out('/Font <<')
        for font in self.document.fonts:
            self.session._out('/F%s %s 0 R' % (font.index, font.number))
        self.session._out('>>')
        if self.document.images:
            self.session._out('/XObject <<')
            for image in self.document.images:
                self.session._out('/I%s %s 0 R' % (image.index, image.number))
            self.session._out('>>')
        self.session._out('>>')
        self.session._out('endobj')
def _put_resource_dict ( self ) : self . session . _add_object ( 2 ) self . session . _out ( '<<' ) self . session . _out ( '/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]' ) self . session . _out ( '/Font <<' ) for font in self . document . fonts : self . session . _out ( '/F%s %s 0 R' % ( font . index , font . number ) ) self . session . _out ( '>>' ) if self . document . images : self . session . _out ( '/XObject <<' ) for image in self . document . images : self . session . _out ( '/I%s %s 0 R' % ( image . index , image . number ) ) self . session . _out ( '>>' ) self . session . _out ( '>>' ) self . session . _out ( 'endobj' )
Creates PDF reference to resource objects.
Creates PDF reference to resource objects .