You can publish a new document or you can republish an existing document. In either case, publishing generates and queues a Publish Request. You can select publication configuration options to specify whether the published document is versioned to create a document. You can also direct that the document be removed at the end of the publish operation.
During the Publish Request operation, a target document is created that later becomes the publication document. The Publish Request tracks this document. The target document is obtained in different ways, depending on the type of publish operation and the capabilities of an existing publication document. If publishing to a new document, a target document is always created as a new document.
If republishing a document which supports versioning, the current document is checked out. The new reservation document version becomes the target document. This approach is used whether the publish operation is to version the document or replace it. A replace operation causes the previous version to be deleted when the publish operation completes.
If the document class does not support versioning, then a new document is created. In this case a replace command generates a new document and the previous document is deleted when the Publish Request operation completes.