Skip to main content

Update Headers Footers - Header Management for Zapier

PDF4me Update Headers and Footers is a Zapier action that adds or replaces headers and footers in a Word document using plain text or HTML. Insert company branding, page numbers with the PAGE and NUMPAGES fields, or different content for the first page versus even and odd pages. Returns a new Word file for the next Zap step.

What this action does

Takes a Word document from a previous Zap step and writes header and footer content across up to eight fields: an all-pages header and footer, plus optional first-page and even/odd-page overrides for both. Content can be plain text (automatically styled) or full HTML with inline CSS for logos and custom layout. Useful for branding reports, adding page numbers, or formatting a title page differently from the body.

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

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 Word header/footer management services.

Important Facts You Should Not Miss

Only File is required
Every header and footer field is optional. Fill in only the sections you actually want to change, leave the rest blank.
Page-specific fields override the all-pages content
First Page, Even Pages, and Odd Pages Header/Footer Html only apply where set. Leave them blank to fall back to All Pages Header Html and All Pages Footer Html everywhere.
PAGE and NUMPAGES insert live field codes
Text like "Page PAGE of NUMPAGES" is converted to actual Word page-number fields, not static text, so numbers stay correct if the document is edited afterward.
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.

PDF4me Update Headers Footers Word Zapier - File, File Name, All Pages Header Html, First Page Header Html, Even Pages Header Html, Odd Pages Header Html
Configure Update Headers and Footers: map File (required), then All Pages Header Html and the optional page-specific header fields.
Update Headers Footers Word Zapier - First Page Footer Html with HTML example, Even Pages Footer Html, Odd Pages Footer Html, Culture Name
Footer fields accept full HTML with inline CSS, shown here with a two-column layout and an embedded logo image, plus optional Culture Name.

What Are the Key Features of Update Headers and Footers?

  • Multiple Page Types: All pages, first page only, and even/odd page variants
  • HTML Content Support: Rich HTML with inline CSS for logos and custom layout
  • Automatic Styling: Professional default styling applied to plain-text content
  • Page Number Fields: PAGE and NUMPAGES insert live, auto-updating field codes
  • Flexible Layout: Different headers/footers for different page types
  • Culture Support: Locale-specific document processing

Parameters

Complete list of parameters for the Update Headers and Footers action. Parameter names and order match the Zapier configuration UI shown in the screenshots above.

Quick setup checklist
  1. Map File and File Name from previous step
  2. Set All Pages Header Html and/or All Pages Footer Html (plain text, HTML, or "Page PAGE of NUMPAGES")
  3. Optionally set First Page, Even Pages, or Odd Pages Header/Footer Html for page-specific content
ParameterRequiredWhat it doesExample
FileRequiredWord document to update. Map from a previous step. Must provide full file content.[4. File from Step 4]
File NameConditionalWord filename with .docx or .doc extension for the output file.abc.docx
All Pages Header HtmlConditionalHeader applied to every page. Plain text or HTML. Supports PAGE, NUMPAGES, SECTION, SECTIONPAGES fields.Ynoox
First Page Header HtmlConditionalHeader for the first page only, overrides All Pages Header Html on page one.Title Page
Even Pages Header HtmlConditionalHeader for even-numbered pages, for book-style layouts.Book Title
Odd Pages Header HtmlConditionalHeader for odd-numbered pages, for alternating layouts.Chapter Title
All Pages Footer HtmlConditionalFooter applied to every page. Plain text or HTML, including page-number fields.Page PAGE of NUMPAGES
First Page Footer HtmlConditionalFooter for the first page only, overrides All Pages Footer Html on page one.Confidential
Even Pages Footer HtmlConditionalFooter for even-numbered pages.Page PAGE
Odd Pages Footer HtmlConditionalFooter for odd-numbered pages.Page PAGE
Culture NameConditionalCulture code affecting locale-specific document processing.en-US

Important: Only File is required. Page-specific fields (First Page, Even Pages, Odd Pages) override All Pages content only where they are set, everything else falls back to the all-pages value.

What Does Update Headers and Footers Return?

The PDF4me Update Headers and Footers action returns the updated 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 headers/footers. 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
FieldTypeWhat it contains
Job IdStringUnique identifier for the Zapier job execution.
File UrlURLAPI endpoint to download the modified Word file.
Alternate File UrlURLAlternate download URL with the filename in the path.
File NameStringBase filename without extension.
Full File NameStringComplete filename with extension.
File ExtensionStringFile extension of the returned file, .docx.

Example JSON output (URLs show format only, not working links):

{
"Job Id": "...",
"File Url": "api.pdf4me.com/Zapier/GetDocument?d=...",
"Alternate File Url": "api.pdf4me.com/Zapier/GetAltDocument/.../document.docx",
"File Name": "document",
"Full File Name": "document.docx",
"File Extension": ".docx"
}

Typical Setups

Workflow ExamplesCommon Zapier workflow patterns using Update Headers and Footers.
Company branding with page numbers
  1. A trigger fires when a document is finalized for distribution.
  2. PDF4me Update Headers and Footers sets All Pages Header Html to HTML with the company name and logo, and All Pages Footer Html to "Page PAGE of NUMPAGES".
  3. An upload step saves the branded document to a distribution folder.
Book-style layout with even and odd pages
  1. A trigger fires when a manuscript is marked ready for layout.
  2. PDF4me Update Headers and Footers sets Even Pages Header Html to the book title, Odd Pages Header Html to the chapter title, and First Page Header Html to blank for a clean title page.
  3. The formatted manuscript uploads to a publication-ready folder.
Report page numbering with a different cover page
  1. A trigger fires when a report is generated on a schedule.
  2. PDF4me Update Headers and Footers sets All Pages Footer Html to "Page PAGE of NUMPAGES" and First Page Footer Html to blank so the cover page has no page number.
  3. The numbered report is emailed to the distribution list.

Practical Tips

File: (Exists but not shown) causes errors
Select the mapping option that provides the file's full binary content instead of a reference.
PAGE and NUMPAGES must appear as literal field names
Type them exactly as PAGE and NUMPAGES inside your text, such as "Page PAGE of NUMPAGES", the action converts these into live Word field codes.
Leave a field blank to skip that override
An empty First Page or Even/Odd field does not clear the header, it simply falls back to whatever All Pages Header Html or All Pages Footer Html specifies.
HTML gives you logos and multi-column layouts
Use div and p tags with inline styles, or an img tag pointing to a hosted logo, for a header that goes beyond plain text.
Culture Name only affects locale formatting
It does not change header/footer layout or content, leave it blank unless you specifically need locale-aware processing.

Cheat Sheet

FieldValue
ActionUpdate Headers and Footers
File[Mapped from previous step]
All Pages Header HtmlCompany Name
All Pages Footer HtmlPage PAGE of NUMPAGES
First Page Header Html(blank for clean title page)
Culture Nameen-US (optional)

Common Questions

How do I add a header and footer to a Word document automatically in Zapier?+
Add the PDF4me Update Headers and Footers action to a Zap, map the Word file from a previous step, and fill in All Pages Header Html and/or All Pages Footer Html. See Microsoft's guide on inserting a header or footer for how these sections behave in Word.
How do I add page numbers to a Word document footer automatically?+
Set All Pages Footer Html to a string containing the PAGE and NUMPAGES fields, such as "Page PAGE of NUMPAGES". The action inserts real field codes, so numbers stay correct if the document changes length afterward.
Can I have a different header on the first page than the rest of the document?+
Yes. Set First Page Header Html (and First Page Footer Html) to different content than the All Pages fields. When set, the first-page values override the all-pages content on page one only.
Can I use different headers for even and odd pages, like a book?+
Yes. Set Even Pages Header Html and Odd Pages Header Html independently, for example a book title on even pages and a chapter title on odd pages. See Microsoft's documentation on section-based headers and footers for the underlying Word concept this automates.
Does the header and footer content support HTML formatting?+
Yes. Fields accept HTML with inline CSS, such as div and p tags with font, color, and layout styling, or an img tag for a logo. Plain text is also accepted and receives automatic professional styling.

Same Task on Other Platforms

Industry Use Cases & Applications

  • Report Branding: Add company headers with logo and name using HTML formatting
  • Page Numbering: Insert "Page X of Y" footers in reports and proposals
  • Document Finalization: Add professional headers/footers before distribution
  • Title Page Formatting: Different first page header for cover pages
  • Multi-Section Documents: Section-specific headers for complex documents

Get Help