def _put_resource_dict(self):
self.session._add_object(<NUM_LIT:2>)<EOL>self.session._out('<STR_LIT>')<EOL>self.session._out('<STR_LIT>')<EOL>self.session._out('<STR_LIT>')<EOL>for font in self.document.fonts:<EOL><INDENT>self.session._out('<STR_LIT>' % (font.index, font.number))<EOL><DEDENT>self.session._out('<STR_LIT>')<EOL>if self.document.images:<EOL><INDENT>self.session._out('<STR_LIT>')<EOL>for image in self.document.images:<EOL><INDENT>self.session._out('<STR_LIT>' % (image.index, image.number))<EOL><DEDENT>self.session._out('<STR_LIT>')<EOL><DEDENT>self.session._out('<STR_LIT>')<EOL>self.session._out('<STR_LIT>')<EOL>
Creates PDF reference to resource objects.