Skip to main content

Merge Documents - Document Assembly for Zapier

PDF4me Merge Documents combines multiple Word files into one—ideal for assembling reports from department sections, compiling proposals, or merging contract clauses. Use SortPosition to control order, choose how styles merge (KeepSourceFormatting, KeepDifferentStyles, UseDestinationStyles), and set compliance (ECMA, Transitional, Strict). No manual copy-paste, no Word desktop required.

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 document merging services.

PDF4me Merge Documents Word Zapier configuration - Documents array with Filename, DocContent, SortPosition, FormatMode
Configure the Merge Documents action—add documents to the array with Filename, DocContent (map from steps), and SortPosition for merge order.
Merge Documents Word Zapier - Merge Options Time Zone, Compliance Level
Optional Merge Options—Time Zone for metadata, Compliance Level (ECMA, Transitional, Strict).

Configuration at a Glance

Example configuration from the Zapier interface

The screenshot shows Number of files = 2, File1 and File2 mapped from previous steps (e.g., 2. File, 4. File), File Name1 = abc.docx, Sort Position1 = 1, Format Mode1 (dropdown). For each file, map File, File Name, and set Sort Position. Lower Sort Position = earlier in merge order.

Number of files

2

File1 / File2

Map from step

File Name1

abc.docx

Sort Position1

1

Format Mode1

Choose value...

Map File1, File2, etc. from previous steps

Use the + button to map File1, File2 (and File Name1, File Name2) from earlier Zap steps. Set Number of files first to reveal the file fields. Each 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)" and get errors, select the option that provides the full file content. See Zapier & Power Automate Tips for details.

Key Features

  • Multiple Document Support: Merge unlimited number of Word documents into one
  • Flexible Ordering: Control merge order with customizable SortPosition values
  • Formatting Options: Choose how to handle styles during merge (3 modes)
  • Compliance Settings: Apply different compliance levels (ECMA, Transitional, Strict)
  • Timezone Metadata: Add timezone information for document tracking
  • Style Management: Intelligent handling of document styles and formatting
  • Base Document Concept: First document (lowest SortPosition) becomes foundation
  • Metadata Preservation: Maintain document properties and custom metadata

Parameters

Complete list of parameters for the Merge Documents action. Parameter names match the Zapier configuration UI.

Quick setup checklist
  1. Set Number of files (2, 3, etc.)
  2. Map File1, File2 (and File Name1, File Name2) from previous steps
  3. Set Sort Position1, Sort Position2 for merge order—lower = earlier
  4. Set Format Mode1, Format Mode2 per document (KeepSourceFormatting, etc.)

Important: Parameters marked with an asterisk (***) are required. Set Number of files first; Zapier shows File1, File Name1, Sort Position1, Format Mode1, then File2, File Name2, etc. Lower Sort Position = earlier in merge order.

ParameterTypeDescriptionExample
Number of files***NumberHow many documents to merge—determines how many File/File Name/Sort Position/Format Mode fields appear2
File1***FileFirst document—map from previous step (Drive, Dropbox, trigger)[2. File from Step 2]
File Name1***StringFilename for first document—with .docx or .doc extensionabc.docx
Sort Position1***NumberMerge order for first document—lower = earlier in output1
Format Mode1StringFormatting for first document—KeepSourceFormatting, KeepDifferentStyles, UseDestinationStylesChoose value...
File2***FileSecond document—map from previous step[4. File from Step 4]
File Name2, Sort Position2, Format Mode2Same for second document; repeat for File3, File4... if Number of files > 2
Merge Options Time ZoneStringTimezone for document metadata—UTC, America/New_York, etc.UTC
Merge Options Compliance LevelStringDocument compliance—ECMA, Transitional, StrictTransitional

Output

The PDF4me Merge Documents action returns the merged Word file 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 merged Word file. 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/.../merged.docx
ParameterTypeDescription
Job IdStringUnique identifier for the Zapier job execution
File UrlURLAPI endpoint to download the merged 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 Merge Documents action in Zapier provides comprehensive scenario templates:

Automated Multi-Department Report Assembly Workflow

Complete Scenario Steps:

  1. Trigger: Monthly department reports all submitted
  2. Get Cover Page: Retrieve from templates (SortPosition = 0)
  3. Get Executive Summary: From summary folder (SortPosition = 1)
  4. Get Department Sections: Loop through 5 departments (SortPosition = 2-6)
  5. Build Documents Array: Add all with FormatMode = "KeepSourceFormatting"
  6. Set Compliance: Merge Options Compliance Level = "Transitional"
  7. Set Timezone: Merge Options Time Zone = "UTC"
  8. Merge Documents: Map File1, File2, … for each section; set Sort Position1, Sort Position2, …
  9. Upload Final Report: Map File Url from output to executive reports folder
  10. Email Leadership: Send consolidated report to C-suite

Business Benefits:

  • Assembles 12 monthly executive reports automatically
  • SortPosition ensures correct section ordering
  • KeepSourceFormatting preserves department styling
  • Reduces manual assembly from 3 hours to 5 minutes per report

Industry Use Cases & Applications

  • Contract Assembly: Merge standard clauses with custom terms into complete contracts
  • Legal Brief Compilation: Combine argument sections, exhibits, authorities into final briefs
  • Discovery Document Assembly: Merge privilege logs with responsive documents for production
  • Matter File Consolidation: Combine case memos, pleadings, correspondence into matter summaries
  • Opinion Letter Assembly: Merge research memos with opinion boilerplate into client letters

Get Help