Document apiReference

info

Return document summary info including word, character, paragraph, heading, table, image, comment, tracked-change, SDT-field, list, and page counts, plus outline and capabilities.

read-onlyidempotent
doc.info(…)

Expected result

Returns a DocumentInfo object with counts (words, characters, paragraphs, headings, tables, images, comments, trackedChanges, sdtFields, lists, and optionally pages when pagination is active), document outline, capability flags, and revision.

Inputs

This operation takes no input fields.

Result

Output fields
countsobjectrequired
Fields
wordsintegerrequired
charactersintegerrequired
paragraphsintegerrequired
headingsintegerrequired
tablesintegerrequired
imagesintegerrequired
commentsintegerrequired
trackedChangesintegerrequired
sdtFieldsintegerrequired
listsintegerrequired
pagesinteger
outlineobject[]required
capabilitiesobjectrequired
Fields
canFindbooleanrequired
canGetNodebooleanrequired
canCommentbooleanrequired
canReplacebooleanrequired
revisionstringrequired
stylesobject

Styles currently in use in the document.

Fields
paragraphStylesobject[]required

Paragraph styles in use, sorted by frequency (most common first).

defaultsobject

Document's default body text formatting. Use these values when creating new content to match existing style.

Fields
fontFamilystring

Most common body text font family.

fontSizenumber

Most common body text font size in half-points.

styleIdstring

Most common body paragraph style ID.

Raw schemas

Open the generated JSON artifact for the exact input, output, success, and failure schemas represented by this contract version.

View raw JSON schemas