indexer

indexer

ADVANCED / PREMIUM BASIC

Parses Word documents and return their contents.

Description
Indexer (mixed $source)

This class parses the content of DOCX documents and returns an array with these contents:

  • body
  • charts
  • comments
  • endnotes
  • fonts
  • footers
  • footnotes
  • headers
  • images
  • links
  • people
  • properties
  • sections
  • styles

Parameters

source

The path to the Word document to be parsed (Advanced and Premium licenses) or a DOCXStructure object (Premium licenses).

Return values

array or json

Code samples

Example #1: