Publishing Engine Programmer's Guide > The Arbortext Publishing Engine Sub-Process > Arbortext Publishing Engine Document Conversion > Conversion Processing > Specifying the Output Format
  
Specifying the Output Format
The output format is specified by the type parameter. This parameter both controls the processing performed and specifies the HTTP content-type header value to be used in returning the output file to the HTTP client that submitted the f=convert request. The following table lists the supported output types and the corresponding header value.
Output File Types
Type parameter value
content-type header value
epub
application/epub+zip
html
text/html
htmlhelp
application/octet-stream
pdf
application/pdf
postscript
application/postscript
rtf
text/rtf
sgml
text/sgml
web
application/zip
xml
text/xml
There is no defined MIME type for the HTML Help format. Therefore the conversion processor returns a content-type of application/octet-stream.
For Web output, the conversion process return a zip archive containing the directory produced by the web publishing process and a number of subdirectories.
In addition, the conversion processor returns a zip archive (content-type application/zip) if the parameter zip-output=yes is specified on the request. Lastly, the conversion process may return an XHTML page (content-type text/xml) with a return code of 500 if it detects an error that prevents it from successfully completing the requested conversion.