Skip to main content

Update Table of Contents in Word Using Zapier

Update Table of Contents is a Zapier action by PDF4me that refreshes or creates a TOC field in a Word document, detecting an existing TOC and generating a new one when none is found. Trigger it after report edits, manual publication, or document assembly to keep heading levels, hyperlinks, and page numbers accurate before you ship the file.

Related Blog Posts
No blog post yet for this feature — coming soon.
In the meantime, browse the PDF4me blog for tutorials and workflows across every platform.
Visit the blog →

How Do I Authenticate My API Request?​

To access the PDF4me Web API through Zapier, every request must include proper authentication credentials. Authentication ensures secure communication and validates your identity as an authorized user, enabling seamless integration between your Zapier workflows and PDF4me's powerful Word TOC management services.

PDF4me Update Table of Contents Word Zapier configuration - File, File Name abc.docx, HeadingLevels 1-3, Use Hyperlinks False, Hide Tab Leader False, Use Upper case True, Culture Name en-Us
Configure Update Table of Contents: map File and File Name, set HeadingLevels, Use Hyperlinks, Hide Tab Leader, Use Upper case, and Culture Name.

Important Facts You Should Not Miss​

Only File is truly required
The screenshot confirms File is the only field carrying an asterisk in the Zapier UI. File Name, HeadingLevels, Use Hyperlinks, Hide Tab Leader, Use Upper case, and Culture Name are all optional.
Detects and refreshes, or creates a new TOC
If the document already has a TOC field, the action refreshes it in place. If none exists, it generates a new one using your HeadingLevels and formatting settings.
HeadingLevels controls TOC depth
A range string such as "1-3" includes only headings within that depth, across Word's full Heading 1 through Heading 6 range.

Configuration at a Glance​

Example configuration from the Zapier interface

The screenshot shows File mapped from a previous step with File Name "abc.docx", HeadingLevels "1-3", Use Hyperlinks and Hide Tab Leader set to False, Use Upper case set to True, and Culture Name "en-Us".

File

Map from step

HeadingLevels

1-3

Use Hyperlinks

False

Hide Tab Leader

False

Use Upper case

True

Map File from previous steps

Use the + button next to File and File Name to map from earlier Zap steps (e.g., Google Drive, Dropbox, or a trigger). The Word file must provide full content, not "Exists but not shown" references.

File: (Exists but not shown)

If you see "File: (Exists but not shown)" in the File field and get errors, select the option that provides the full file content instead. See Zapier & Power Automate Tips for details.

Parameters​

Complete list of parameters for the Update Table of Contents action. Parameter names match the Zapier configuration UI.

Required in the Zapier UI: File only. File Name, HeadingLevels, Use Hyperlinks, Hide Tab Leader, Use Upper case, and Culture Name are all optional.

ParameterRequiredWhat it doesExample
FileRequiredWord document content, mapped from a previous step using full file content.[4. File from Step 4]
File NameOptionalFilename with .docx or .doc extension, used for output naming.abc.docx
HeadingLevelsOptionalRange of heading levels to include in the TOC, from 1 through 6. Defaults to 1-3.1-3
Use HyperlinksOptionalBoolean toggle for clickable TOC entries that jump to each heading.False
Hide Tab LeaderOptionalBoolean toggle to hide the dot leaders between TOC text and page numbers.False
Use Upper caseOptionalBoolean toggle to render TOC entry text in uppercase.True
Culture NameOptionalCulture or locale code affecting language and formatting conventions. Defaults to en-Us.en-Us
File NameOptionalName of the Word document, including its extension (for example `report.docx`).

What Fields Does the Output Include?​

The action returns the modified Word document plus tracking metadata. This output shape is shared across PDF4me Word actions in Zapier that return a file.

FieldTypeWhat it contains
jobIdTextID of the PDF4me job that processed the request.
traceIdTextTrace ID of the request, when PDF4me returns one. Give it to PDF4me support when reporting a problem.
documentIdTextID PDF4me gives the resulting document.
File NameTextName of the resulting file, without extension.
File ExtensionTextExtension of the resulting file, for example `.pdf`.
Full File NameTextName of the resulting file, with extension.
File UrlTextDownload link of the resulting file. Map it into any later step that needs the file, for example an upload to Google Drive, Dropbox or OneDrive.
Alternate File UrlTextAlternative download link of the resulting file, with the file name at the end of the URL.
File SizeNumberSize of the resulting file, as reported by PDF4me.

Typical Setups​

Workflow ExamplesCommon Zapier workflow patterns using Update Table of Contents.
Refresh TOC after report edits
  1. A trigger fires when a generated report document lands in a Drive or Dropbox folder.
  2. Update Table of Contents runs with HeadingLevels set to "1-3" and Use Hyperlinks set to True so the TOC page numbers and links reflect the final content.
  3. The updated report is uploaded to a shared reports folder for distribution.
Generate a TOC before manual publication
  1. A technical manual is marked ready for publication, triggering the Zap.
  2. Update Table of Contents runs with HeadingLevels set to "1-4" for deeper navigation and Use Upper case set to True for a formal, printed look.
  3. The publication-ready manual is emailed to the publishing team.
Refresh the TOC after merging documents
  1. Several Word documents are combined earlier in the Zap using a PDF4me merge action.
  2. Update Table of Contents runs on the merged file with HeadingLevels set to "1-2" for a high-level overview of the combined sections.
  3. The consolidated document with an accurate TOC is archived to a storage folder.

Practical Tips​

Map full file content, not a reference
If File shows "Exists but not shown", pick the mapping option that provides full file content, or the action can fail to process the document.
HeadingLevels uses a simple range string
Set HeadingLevels to a value such as "1-3" to include Heading 1 through Heading 3 styles. Word supports heading levels 1 through 6.
Hide Tab Leader only removes the dot leaders
Hide Tab Leader controls the dots between TOC text and page numbers. It does not remove page numbers themselves.
Use Upper case affects TOC text only
Use Upper case renders the TOC entry text in capitals. It does not change the case of the actual heading text in the document body.
Existing TOC fields are refreshed, not duplicated
If the document already contains a TOC field, this action updates it in place instead of inserting a second, duplicate table.

Cheat Sheet​

FieldValue
ActionUpdate Table of Contents
File[mapped from previous step, full content]
File Nameabc.docx
HeadingLevels1-3
Use HyperlinksFalse
Hide Tab LeaderFalse
Use Upper caseTrue
Culture Nameen-Us

Frequently Asked Questions​

How do I update a table of contents in a Word document using Zapier?+
Add the PDF4me Update Table of Contents action to a Zap, map File with full file content, set HeadingLevels and the formatting toggles, and run the Zap. See Microsoft's guide to updating a table of contents for how the same refresh works manually inside Word.
What happens if the Word document has no existing table of contents?+
The action detects whether a TOC field already exists. If one is found, it refreshes that field in place; if none exists, it generates a new TOC field using your HeadingLevels and formatting settings. See Microsoft's guide to inserting a table of contents for how a first-time TOC is normally created.
Why isn't my table of contents showing hyperlinks?+
Use Hyperlinks controls this and defaults to False in the example configuration. Set Use Hyperlinks to True in the Zapier field to make TOC entries clickable links that jump to each heading.
Can I control which heading levels appear in the table of contents?+
Yes. HeadingLevels accepts a range string such as "1-3" to include only Heading 1 through Heading 3 styles, across the full 1-6 heading level range Word supports.
Does Culture Name affect the table of contents formatting?+
Culture Name sets the locale used for document processing, such as en-US or de-DE, which can affect language and number formatting conventions in the output. It is optional and can be left blank for default handling.

Same Task on Other Platforms​

Industry Use Cases & Applications​

  • Technical Manual Publishing: Update TOC in technical manuals with 4-level navigation before publication
  • Book Publishing: Refresh TOC in manuscripts with hyperlinks after final edits
  • User Guide Updates: Update TOC in user guides after content revisions
  • Catalog Production: Refresh TOC in product catalogs with tab leaders after updates
  • Report Publishing: Update TOC in annual reports before distribution

Get Help​