In This Topic
Reference Guides / JavaScript API / Actions / Document / GetDocumentType

GetDocumentType

In This Topic
 GetDocumentType

This function returns the document type for the currently loaded document into the specified DocuVieware™ viewer.

GetDocumentType: function (docuViewareID)

Parameters

docuViewareID
The identifier for the DocuVieware™ instance.

Return Value

0 if error (for instance if there is no document loaded), the loaded document document type otherwise. Possible values are:
  • DocumentTypeUnknown = 0 - Unknown or undefined document type.
  • DocumentTypeBitmap = 1 - Raster image.
  • DocumentTypeMetaFile = 2 - Metafile image.
  • DocumentTypePDF = 3 - PDF.
  • DocumentTypeSVG = 4 - SVG.
  • DocumentTypeTXT = 5 - Text-based document.
  • DocumentTypeOpenXMLWord = 6 - Open XML Wordprocessing.
  • DocumentTypeRTF = 7 - RTF format.
  • DocumentTypeDXF = 8 - DXF format.
  • DocumentTypeOpenDocumentText = 9 - OpenDocument Text format.
  • DocumentTypeOpenXMLSpreadsheet = 10 - Open XML Spreadsheet. <
  • DocumentTypeOpenXMLPresentation = 11 - Open XML Presentation. <
  • DocumentTypeWordBinary = 12 - Word (.doc) Binary File Format.
  • DocumentTypeExcelBinary = 13 - Excel (.xls) Binary File Format.
  • DocumentTypePowerPointBinary = 14 - PowerPoint (.ppt) Binary File Format.
  • DocumentTypeHTML = 15 - HTML Format.
  • DocumentTypeMSG = 16 - Outlook Message Item File format.
  • DocumentTypeEML = 17 - E-Mail Message format.