Changing a document's status

 

The "dirty" status of a document, page, or layer indicates whether it has been modified. You can request the dirty status of documents, pages, and layers, or you can set it.

For

Use

Documents

GetDocumentDirtyStatus or GetDocumentState and SetDocumentDirtyStatus

Pages

GetPageDirtyStatus or GetDocumentState and SetPageDirtyStatus

Layers

GetLayerDirtyStatus or GetDocumentState and SetLayerDirtyStatus

For documents and layers, the options to set or return are: clean, modified, deleted, new, and modified since load. For pages, the deleted option is not available. In each case, options can be ORed.

With the GetDirtyPageIDs transaction, you can request the number of dirty pages and a list of their identifiers. With the GetDirtyDocwins transaction, you can request the number of document windows that have been changed and their identifiers.

See also