def export
            exported_obj = self.logicalize
            exported_obj.no = exported_obj.generation = 0
            exported_obj.set_document(nil) if exported_obj.indirect?
            exported_obj.parent = nil
            exported_obj.xref_cache.clear

            exported_obj
        end
def export
            exported_obj = self.logicalize
            exported_obj.no = exported_obj.generation = 0
            exported_obj.set_document(nil) if exported_obj.indirect?
            exported_obj.parent = nil
            exported_obj.xref_cache.clear

            exported_obj
        end
Creates an exportable version of current object.
 The exportable version is a copy of _self_ with solved references, no owning PDF and no parent.
 References to Catalog or PageTreeNode objects have been destroyed.

 When exported, an object can be moved into another document without hassle.