PDF4me Word icon

PDF4me Word

Process Word documents with PDF4ME's powerful Word processing capabilities. Add customizable text watermarks to Word documents with full control over styling, orientation, and positioning.

Update Table of Contents

AI-generated

Summary

Update the table of contents in a Word document by providing the input Word file and specifying formatting options such as heading levels, page numbers inclusion, and tab leader style.

Inputs

  • Word File Input Method (required) — Select how to provide the Word file: from previous node binary data, base64 encoded string, or via a URL.
  • Binary Data Property Name (required) — When using binary input, specify the binary property name containing the Word file (default 'data').
  • Base64 Encoded Word Content (required) — When using base64 input, provide the Word file's content as a base64 encoded string.
  • Word File URL (required) — When using URL input, provide a publicly accessible URL to download the Word file.
  • Heading Levels (required) — Number of heading levels (1 to 9) to include in the updated table of contents.
  • Include Page Numbers (required) — Boolean to include or exclude page numbers in the table of contents.
  • Tab Leader (required) — Choose the tab leader style for the table of contents entries: None, Dots, Dashes, or Underline.
  • Source Document Name — Name of the original Word document (default 'document.docx'), for reference and processing.
  • Culture Name — Locale culture code (e.g., en-US) used for document processing and formatting.
  • Output Binary Data Name — Name for the binary data in the node's output where the processed Word file will be stored (default 'data').

Output shape

a single item containing the processed Word document as binary data under the specified output property name

The output includes the updated Word file with the refreshed table of contents reflecting the specified heading levels, page numbering, and tab leader style.

Discussion