indexer

indexer (PDF)

ADVANCED / PREMIUM TRIAL

Return information from a PDF document.

Description
public indexer (string $source)

This class parses a PDF document and returns an array with these contents:

  • page_count
  • version
  • pages: annotations, orientation, size

Parameters

source

Path to the PDF document.

Return values

array

Exceptions

File doesn't exist.

Code samples

Example #1

Release notes
  • phpdocx 15.5:
    • cast to int object stream content indexes.
    • improved annotations support.
  • phpdocx 13.0:
    • new method.