Publisher and Web Interface > Publisher > Generating documents and Publisher HTML > Generating a document or Publisher HTML through a document template (Publisher)
  
Generating a document or Publisher HTML through a document template (Publisher)
This task covers generating a document or Publisher HTML through a Document Template that appears in the New Document pane, or from a Document Template that has been provided to you as a DTX file.
To generate a document or Publisher HTML through a document template:
1. In Modeler, open the source model from which you want Publisher to generate a document or Publisher HTML.
2. If the Document Template has been designed to generate a document or Publisher HTML from an item or diagram that is selected in Modeler, select the appropriate item or diagram in Modeler.
Note that none of the provided PTC document templates use a selected item or diagram in Modeler.
3. If Publisher is not started, start
Publisher. To know more, refer to Starting Artisasn Document Generator.
4. If you want to generate using a Document Template file that has not been imported to your Publisher environment:
a. Click the New Document pane.
b. Right-click the background of the New Document pane, and then click Import Template.
c. From the dialog, select the Document Template you want to import, and then click Open.
5. In the New Document pane, right-click the Document Template you want to use, point to Generate To, and then click Word or Publisher HTML.
Publisher generates the output to the folder specified in the Output Path:
For the Word output format, the name of the document is based on the name of the Publisher Document Template. Publisher generates Word documents using Word 2003 (.doc) format. If you want to save the document using Word format (.docx), do not select the Maintain Compatibility with Word 97-2003 check box.
For the Publisher HTML output format, the name of the subfolder in which the Publisher HTML files are generated is the name of the Publisher Document Template.