extractContentToFile

public final void extractContentToFile(String outputPath)

Extracts structured content from the document and saves it to a JSON file. Uses the document's DocumentLayoutJsonExportSettings for configuration.

Parameters

outputPath

Path to the output JSON file.


public final void extractContentToFile(String outputPath, DocumentLayoutJsonExportSettings settings)

Extracts structured content from the document and saves it to a JSON file with custom settings.

Parameters

outputPath

Path to the output JSON file.

settings

Settings controlling what to include in the JSON output.