indexer

indexer

ADVANCED / PREMIUM BASIC

Parses Word documents and return their contents.

Description
Indexer (string $path)

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

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

Parameters

path

The path to the Word document to be parsed.

Return values

array or json.

Code samples

Example #1: