Skip to main content
Open a document for viewing (PDF, Word, etc.).

Parameters

PropertyTypeRequiredDescription
filePathStringYesDocument file path
fileTypeStringNoFile type hint
successFunctionNoCallback on success
failFunctionNoCallback on failure
completeFunctionNoCallback that always executes

Code Example

my.openDocument({
  filePath: documentPath,
  fileType: 'pdf',
  success: () => {
    console.log('Document opened');
  }
});