FileType enumeration (JavaScript API for Office v1.1)

JavaScript API for Office v1.1

Specifies the format in which to return the document.

Last modified: June 12, 2014

Office.FileType

Values

Enumeration

Value

Description

Office.FileType.Compressed

"compressed"

Returns the entire document (.pptx or .docx) in Office Open XML (OOXML) format as a byte array.

Office.FileType.PDF

"pdf"

Returns the entire document in PDF format as a byte array.

Office.FileType.Text

"text"

Returns only the text of the document as a string. (Word only)

App types

Content apps, Task pane apps

Supported clients

PowerPoint 2013, PowerPoint 2013 SP1, PowerPoint 2013 RT, Word 2013, Word 2013 SP1, Word 2013 RT

Library

Office.js

Namespace

Office

Show:
© 2014 Microsoft