Skip to main content

Add Page Number to PDF for Zapier

What this action does

What this action does: The PDF4me Add Page Number to PDF action stamps sequential page numbers onto every page of a PDF inside your Zap. Choose where the number appears - top, middle, or bottom; left, centre, or right - and dial in font size, bold/italic style, millimetre margins, and a page number format. Enable Skip First Page to leave the cover unnumbered. The output is a new numbered PDF ready to save to Google Drive, send via email, upload to SharePoint, or pass to the next step in your Zapier workflow.

Authenticating Your API Request

Every PDF4me action in Zapier requires a valid API key. Connect PDF4me once in Zapier's account settings - your key is stored securely and reused across all PDF4me Zaps automatically.

Important Facts You Should Not Miss

File, Vertical Alignment, and Horizontal Alignment are all required
All three must be provided or the action fails. File carries the PDF binary from your trigger; Vertical Alignment positions the number on the page height (Top/Middle/Bottom); Horizontal Alignment positions it across the page width (Left/Center/Right). Map all three before testing.
Margins are ignored when alignment is Center or Middle
Horizontal Margin is only applied when alignment is Left or Right - it sets the gap from the nearest edge. It is silently ignored for Center. The same applies to Vertical Margin: it is active for Top and Bottom placement only, and ignored when alignment is Middle. Keep this in mind when positioning page numbers precisely.
Skip First Page leaves the cover unnumbered - but the sequence does not reset
When Skip First Page is true, page 1 (your title or cover) receives no visible number. The number that appears on page 2 is "2" - not "1" - because the action counts from the absolute page position in the document. This matches standard publishing and legal document conventions.
Add Page Number to PDF action in Zapier – PDF4me
Add Page Number to PDF action configured inside a Zapier workflow

Parameters

⚠️ Parameters marked Required must be provided for the action to run. Optional parameters control number formatting, font styling, and margin - defaults are applied when omitted.

ParameterRequiredWhat it doesExample
FileYesThe PDF file to add page numbers to. Map the binary file output from a Zapier trigger or previous action - Google Drive file, Gmail attachment, OneDrive/Dropbox file, or a PDF generated by an earlier Zap step.quarterly_report.pdf (from Google Drive trigger)
Vertical AlignmentYesVertical position of the page number on the page. Top - near the top edge. Middle - equidistant from top and bottom edges (Vertical Margin is ignored). Bottom - near the bottom edge.Bottom
Horizontal AlignmentYesHorizontal position of the page number across the page. Left - near the left edge. Center - centred across the page (Horizontal Margin is ignored). Right - near the right edge.Center
File NameNoCustom name for the output PDF file. If omitted, the name is derived automatically from the source file. Do not include the path - just the filename with or without the .pdf extension.report_numbered.pdf
Page Number FormatNoThe format string used to display page numbers. Supports numeric (1, 2, 3…), Roman numerals (i, ii, iii…), and compound formats such as "Page 1 of N". See the Zapier dropdown for all available options.Page 1 of N
Horizontal MarginNoGap in millimetres from the nearest horizontal edge. Applied when alignment is Left (gap from left edge) or Right (gap from right edge). Ignored when alignment is Center. Default: 0.10
Vertical MarginNoGap in millimetres from the nearest vertical edge. Applied when alignment is Top (gap from top) or Bottom (gap from bottom). Ignored when alignment is Middle. Default: 0.10
Font SizeNoPoint size for the page number text. Controls visibility and proportion relative to the page content. Recommended range: 8–14 pt for standard A4/Letter documents.12
Set BoldNoApply bold weight to the page number text. true - bold numbers; false - normal weight. Useful for making numbers stand out on dense pages.false
Set ItalicNoApply italic style to the page number text. true - italic; false - upright. Often used to visually distinguish page numbers from body text.false
Skip First PageNoWhen true, no page number is stamped on page 1 (the title or cover page). The numbering sequence continues from the actual page position - page 2 shows "2", not "1". Standard for reports, proposals, and legal documents with a cover.true

Output Fields

Output FieldDescription
FileURL of the numbered PDF ready to download, upload, or pass to the next Zap step
File NameOutput filename without extension
Full File NameComplete filename including the .pdf extension
File ExtensionFile extension of the output document (always .pdf)

Quick Setup

  1. Create or open a Zap and add a trigger that supplies a PDF - Google Drive new file in folder, Gmail new attachment, OneDrive, or a form submission upload.
  2. Add an action step → search PDF4me → select Add Page Number to PDF.
  3. Authenticate with your PDF4me API key if not already connected.
  4. Map File from the trigger output (the binary file field, not a URL link).
  5. Set Vertical Alignment - choose Top, Middle, or Bottom for page number vertical placement.
  6. Set Horizontal Alignment - choose Left, Center, or Right.
  7. Configure optional settings: set Page Number Format, Font Size, Bold, Italic, and margins if needed.
  8. Enable Skip First Page if your document has a title or cover page that should not be numbered.
  9. Test the step - Zapier will process a sample PDF and return the output File URL.
  10. Add downstream steps - upload the numbered PDF to Google Drive, send via Gmail, or pass the File URL to the next action.

Workflow Examples

Workflow ExamplesCommon Zapier patterns using Add Page Number to PDF.
Report Generator → Numbered PDF → Email Delivery

Automatically add page numbers to generated reports and email the final PDF to stakeholders.

  1. Google Drive: New File in Folder - watch 'Reports – Pending' folder for newly generated PDFs
  2. PDF4me: Add Page Number to PDF - map File; Vertical Alignment = Bottom, Horizontal Alignment = Center; Page Number Format = 'Page 1 of N'; Skip First Page = true
  3. Google Drive: Upload File - save numbered PDF to 'Reports – Final' folder
  4. Gmail: Send Email - attach the numbered PDF; send to finance or management distribution list
Contract Created → Add Page Numbers → Save to SharePoint

Stamp sequential page numbers on contracts the moment they are generated and archive them in SharePoint for legal compliance.

  1. PDF4me (or DocuSign / PandaDoc): New Contract PDF generated and available in Google Drive or as a Zap output
  2. PDF4me: Add Page Number to PDF - set Bottom + Right alignment; Vertical Margin = 8mm; Horizontal Margin = 12mm; Font Size = 10; Set Bold = true; Skip First Page = true
  3. Microsoft SharePoint: Create File - upload numbered contract to the 'Contracts – Signed' document library
  4. Slack: Post Message to #legal - notify team with contract name, page count from Full File Name, and SharePoint link
Training Manual Updated → Number Pages → Upload to LMS

When a training manual PDF is updated in Dropbox, add page numbers and push the refreshed document to your Learning Management System.

  1. Dropbox: New or Updated File in Folder - watch 'Training Manuals' folder
  2. PDF4me: Add Page Number to PDF - set File Name dynamically from Dropbox filename; Top + Right placement; Font Size = 11; Skip First Page = true for cover page
  3. Zapier Filter: Continue only if Full File Name ends with .pdf (skip non-PDF uploads)
  4. TalentLMS / Teachable / Moodle: Upload or update course material with the numbered PDF URL from the output File field

Frequently Asked Questions

Which parameters are required for the Add Page Number to PDF action?+
Three parameters are required: File (the PDF binary from a trigger or previous step), Vertical Alignment (Top, Middle, or Bottom), and Horizontal Alignment (Left, Center, or Right). All other parameters are optional and fall back to defaults when omitted.
Does Skip First Page change the numbering sequence?+
Yes. When Skip First Page is true, page 1 (your cover or title page) is left unnumbered. The number that appears on page 2 is "2" - not "1" - because the action counts from the absolute page position in the document. This matches standard publishing and legal document conventions.
How do horizontal and vertical margins work?+
Horizontal Margin (mm) sets the gap from the nearest horizontal edge - left edge when alignment is Left, right edge when Right. It is ignored when alignment is Center. Vertical Margin sets the gap from the top or bottom edge and is ignored when alignment is Middle. Both default to 0 if not set.
What Page Number Format options are available?+
The action supports standard numeric (1, 2, 3…), Roman numerals (i, ii, iii…), and compound formats such as "Page 1 of N". Check the Zapier action field dropdown for the complete list. The default is standard numeric if no format is specified.
Can I use this action on password-protected PDFs?+
No - PDF4me cannot modify encrypted or password-protected PDFs. Remove the password before passing the file to this action. Use a PDF unlock step or Zapier's file manipulation tools to decrypt the document first if your workflow involves protected files.

Get Help