Arbortext Command Language > Functions by Alphabetical Listing > save_as_html_file
  
save_as_html_file
save_as_html_file ([pathname[, overwrite[, doc]]])
This function converts the specified document to an HTML file and saves it using the name specified by pathname. The presentation of the HTML file is based on the characteristics of the current Arbortext Editor stylesheet with tags off.
pathname — Optional. Specifies full path for the resulting HTML file. If not supplied, the user will be prompted for the full path.
overwrite — Optional. Specifies whether to automatically replace an existing file specified by pathname . If set to 0, the user will be prompted to verify overwriting the file. If set to 1, the file will be silently overwritten. The default value is 0.
doc — Specifies the document identifier of the document to be saved as HTML. The doc argument must be a return value from a previous call to doc_open, window_doc, or oid_doc. If doc is omitted or 0, the current document is used.
For example,
$d=doc_open("c:/temp/artdoc.sgm");
save_as_html_file("c:/temp/artdoc.htm", 1, $d);
* 
The File > Save as HTML menu option uses save_as_html_file when saving documents.
Related Topics
Saving a document as an HTML file