Reference Guide
Reference Guides / JavaScript API / Actions / Document / GetDocumentType
In This Topic
    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:
    • 0 = DocumentTypeUnknown
    • 1 = DocumentTypeBitmap
    • 2 = DocumentTypeMetaFile
    • 3 = DocumentTypePDF