pypdflite/pdflite.py
def _put_cross_reference(self):
        """ Cross Reference Object, calculates
            the position in bytes to the start
            (first number) of each object in
            order by number (zero is special)
            from the beginning of the file.

        """
        self.session._out('xref')
        self.session._out('0 %s' % len(self.session.objects))
        self.session._out('0000000000 65535 f ')
        for obj in self.session.objects:
            if isinstance(obj, basestring):
                pass
            else:
                self.session._out('%010d 00000 n ' % obj.offset)
def _put_cross_reference(self):
        """ Cross Reference Object, calculates
            the position in bytes to the start
            (first number) of each object in
            order by number (zero is special)
            from the beginning of the file.

        """
        self.session._out('xref')
        self.session._out('0 %s' % len(self.session.objects))
        self.session._out('0000000000 65535 f ')
        for obj in self.session.objects:
            if isinstance(obj, basestring):
                pass
            else:
                self.session._out('%010d 00000 n ' % obj.offset)
def _put_cross_reference ( self ) : self . session . _out ( 'xref' ) self . session . _out ( '0 %s' % len ( self . session . objects ) ) self . session . _out ( '0000000000 65535 f ' ) for obj in self . session . objects : if isinstance ( obj , basestring ) : pass else : self . session . _out ( '%010d 00000 n ' % obj . offset )
Cross Reference Object, calculates
            the position in bytes to the start
            (first number) of each object in
            order by number (zero is special)
            from the beginning of the file.
Cross Reference Object calculates the position in bytes to the start ( first number ) of each object in order by number ( zero is special ) from the beginning of the file .