10. A system comprising: one or more computer readable storage media; computer readable instructions on the one or more computer readable storage media which, when executed, implement a method comprising: receiving document markup associated with a document, wherein said document conforms to an XML Paper Specification; ascertaining, from the document markup, whether an object of interest is encountered in the document markup, wherein objects of interest comprise at least a SolidColorBrush object or a PathGeometry object; for objects of interest that are encountered, making an entry in a resource dictionary, the making an entry comprising modifying a reference count, in the resource dictionary, for objects that reoccur in the document markup; inserting a resource key associated with objects of interest in an object model associated with the document; and removing, from the resource dictionary, one or more entries associated with objects that do not reoccur in the document markup and, for entries that are removed from the resource dictionary, inserting an associated object in the object model in place of an associated resource key.
10. A system comprising: one or more computer readable storage media; computer readable instructions on the one or more computer readable storage media which, when executed, implement a method comprising: receiving document markup associated with a document, wherein said document conforms to an XML Paper Specification; ascertaining, from the document markup, whether an object of interest is encountered in the document markup, wherein objects of interest comprise at least a SolidColorBrush object or a PathGeometry object; for objects of interest that are encountered, making an entry in a resource dictionary, the making an entry comprising modifying a reference count, in the resource dictionary, for objects that reoccur in the document markup; inserting a resource key associated with objects of interest in an object model associated with the document; and removing, from the resource dictionary, one or more entries associated with objects that do not reoccur in the document markup and, for entries that are removed from the resource dictionary, inserting an associated object in the object model in place of an associated resource key. 11. The system of claim 10 , wherein the method further comprises, prior to said removing, ascertaining whether an object reoccurs in the document markup by examining the reference count associated with the object's entry.