Skip to main content

Update Table of Contents - TOC Management for Zapier

PDF4me Update Table of Contents updates or creates a TOC in Word docs—detects existing TOC fields, creates new ones if missing, and refreshes page numbers. Choose heading levels (1–6), enable hyperlinks, tab leaders, and uppercase. Perfect for report finalization, manual publication, or keeping navigation accurate after edits.

Authenticating Your 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 - File, File Name, HeadingLevels, Use Hyperlinks, Hide Tab Leader, Use Upper case
Configure Update Table of Contents—map File, File Name; set HeadingLevels, Use Hyperlinks, Hide Tab Leader, Use Upper case, Culture Name.

Configuration at a Glance

Example configuration from the Zapier interface

File and File Name mapped from previous step; HeadingLevels = "1-3"; Use Hyperlinks, Hide Tab Leader, Use Upper case, Culture Name.

File

Map from step

HeadingLevels

1-3

Use Hyperlinks

Yes

Hide Tab Leader

Yes/No

Use Upper case

Yes/No

:::tip 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. :::

:::warning 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. :::

Key Features

  • Automatic TOC Detection: Finds and updates existing TOC fields or creates new ones
  • Customizable Heading Levels: Control which heading levels to include (1-6)
  • Hyperlink Support: Enable or disable clickable links in the TOC
  • Tab Leader Control: Show or hide dots between text and page numbers
  • Text Case Options: Use uppercase or preserve original case
  • Culture Localization: Support for different languages and regions
  • Professional Formatting: Automatic application of professional TOC styling
  • Page Number Integration: Automatic page number calculation and updates

Parameters

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

Quick setup checklist
  1. Map File and File Name from previous step
  2. Set HeadingLevels (e.g., "1-3" for levels 1, 2, 3)
  3. Set Use Hyperlinks = Yes for clickable TOC entries
  4. Set Hide Tab Leader and Use Upper case as desired

Important: Parameters marked with an asterisk (***) are required and must be provided for the action to function correctly.

ParameterTypeDescriptionExample
File***FileWord document—map from previous step (Drive, Dropbox, trigger)[4. File from Step 4]
File NameStringWord filename—with .docx or .doc extensiondocument.docx
HeadingLevelsStringHeading levels to include—e.g. "1-3" for levels 1–31-3
Use HyperlinksBooleanClickable TOC entries—Yes/NoYes
Hide Tab LeaderBooleanHide dots between text and page numbers—Yes/NoYes
Use Upper caseBooleanUppercase TOC entries—Yes/NoYes
Culture NameStringDocument Culture/Locale
• Culture code for document processing
• Examples: "en-US", "de-DE", "fr-FR"
• Default: null
• Affects document language and formatting
en-US

Output

The PDF4me Update Table of Contents action returns the modified Word document for use in subsequent Zap steps. The output format is common across all PDF4me Word file-returning actions in Zapier.

Key output fields (map these to your next step)

File Url

API endpoint to download the Word file with updated TOC. Map this to the next step's file input.

api.pdf4me.com/Zapier/GetDocument?d=...
Alternate File Url

Alternative download URL with filename in path.

api.pdf4me.com/Zapier/GetAltDocument/.../document.docx
ParameterTypeDescription
Job IdStringUnique identifier for the Zapier job execution
File UrlURLAPI endpoint to download the modified Word file
Alternate File UrlURLAlternate download URL with filename in path
File NameStringBase filename without extension
Full File NameStringComplete filename with extension
File ExtensionStringFile extension (.docx)

Scenario Examples

The PDF4me Update Table of Contents action in Zapier provides comprehensive scenario templates:

Automated Report TOC Update Workflow

Complete Scenario Steps:

  1. Trigger: Report generation completed
  2. Get Report: Retrieve generated report with content
  3. Update TOC: Heading Levels = "1-3", Use Hyperlinks = Yes
  4. Enable Tab Leaders: Hide Tab Leader = No for professional dots
  5. Preserve Case: Use Uppercase = No for original heading case
  6. Verify TOC: Check page numbers accurate
  7. Upload Final Report: Save to reports folder
  8. Email Stakeholders: Send with accurate TOC
  9. Archive: Store final version
  10. Log Completion: Record finalization event

Business Benefits:

  • Finalizes 100+ reports monthly with accurate TOC
  • Hyperlinks enable easy navigation
  • Professional tab leaders improve readability
  • Zero manual TOC updates saving 15 minutes per report

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