Constructor Summary |
---|
Method Summary | ||
---|---|---|
static method | detectFileFormat(stream) | |
Detects and returns the information about a format of a visio stored in a stream.
|
||
static method | detectFileFormat(filePath) | |
Detects and returns the information about a format of a visio stored in a file.
|
static FileFormatInfo detectFileFormat(stream)
stream: InputStream
- The streamstatic FileFormatInfo detectFileFormat(filePath)
filePath: String
- The file path.Example:
var aspose = aspose || {}; aspose.diagram = require("aspose.diagram"); info = aspose.diagram.FileFormatUtil.detectFileFormat("example.vsdx"); console.log("detect result: " + info.getFileFormatType());