Add Margin to PDF — Online, Automated, in Zapier
What this action does
PDF4me Add Margin to PDF is the automated way to add margins to a PDF online — with millimeter-precise control over Top, Bottom, Left, and Right edges, directly inside your Zapier workflow. Adjust PDF page margin, add white space, set PDF padding, or prepare PDFs with print margin and binding gutter — without manually uploading files to iLovePDF, SmallPDF, or Adobe Acrobat one by one. Original content stays intact; only the surrounding white space expands. Free tier available — automate margin adjustment across Dropbox, Google Drive, Gmail, SharePoint, and 6,000+ Zapier-connected apps.
Authenticating Your API Request
To access the PDF4me Web API through Zapier, every action must be authenticated. Click Connect a new account the first time and paste your PDF4me API key — subsequent Zaps reuse the connection automatically.
Important Facts You Should Not Miss
25.4; for metric A4 standards enter values directly..png)
Map the source PDF, set margin values in millimeters for each side, and run. The output PDF has expanded page dimensions with the original content preserved.
Parameters
Required: Only the File field is required. All four margin fields are optional — if omitted, that side gets a zero-millimeter margin (no change). For binding or printing, you typically need all four margins set. For court filings, only Top and Left often matter.
| Parameter | Required | What it does | Example |
|---|---|---|---|
| File | Yes | Source PDF where margins will be added. Map from a previous Zap step — Dropbox New File, Google Drive New File, Gmail attachment, form submission, HTTP webhook, or any binary PDF output. | 1. File |
| File Name | No | Optional output filename for the resulting PDF with new margins. If omitted, derived automatically from the source filename. Include the .pdf extension. | document_with_margins.pdf |
| Top Margin | No | Millimeters of white space to add above the existing content. Standard 25mm = 1 inch. Court filings often require 38mm (1.5 inches) for filing stamps. | 25 |
| Bottom Margin | No | Millimeters of white space to add below the existing content. Standard 25mm = 1 inch. For booklet printing, match top and bottom for visual balance. | 25 |
| Left Margin | No | Millimeters of white space to add on the left side. For print binding, use 40mm to allow space for the binding spine. Standard documents use 25mm. | 25 |
| Right Margin | No | Millimeters of white space to add on the right side. Typically equal to or less than left margin. For mirrored book layouts, use a smaller value to balance the binding edge. | 25 |
Standard Margin Sizes Reference
Common margin presets by document type — copy these into the Zap fields based on your use case.
25 / 25 / 25 / 25Standard business (1 inch all sides)25 / 25 / 40 / 25Print binding (extra left for spine)25.4 / 25.4 / 25.4 / 25.4Academic APA / MLA / Chicago (exact 1 inch)38 / 25 / 25 / 25Court filing (extra top for stamps)15 / 15 / 15 / 15Newsletter / brochure (maximum content)20 / 15 / 20 / 15Book / magazine (mirrored layout)Output Fields
| Field | Type | What it contains |
|---|---|---|
File Content | Binary | PDF file with new margins applied — ready to upload, email, or pass to further processing steps in the Zap. |
File URL | String | Direct URL to access the resulting PDF. Useful for sharing or downstream HTTP processing without re-uploading. |
File Name | String | Output filename without extension (e.g. document_with_margins). |
Full File Name | String | Complete output filename including the .pdf extension (e.g. document_with_margins.pdf). |
File Extension | String | File extension of the output (always .pdf for this action). |
Quick Setup
- In Zapier, click + to add a new action and select PDF4me.
- Choose Add Margin to PDF as the action event.
- Connect your PDF4me account or paste your API key when prompted.
- Map File to the binary output of a previous step — Dropbox New File, Google Drive New File, Gmail attachment, or form trigger.
- Set the four margin values in millimeters — use the Standard Margin Sizes Reference table above to pick a preset for your use case (binding, academic, court filing, etc.).
- Optionally set File Name by mapping a custom filename +
.pdfextension from a prior step. - Test the step with a sample PDF and inspect the output to verify margins look correct.
- Turn the Zap on. Every new PDF from your trigger gets the same margins added automatically.
Workflow Examples
Workflow ExamplesCommon Zapier workflow patterns using Add Margin to PDF.
- A Dropbox watch folder fires when a book manuscript PDF is uploaded to a "Print Ready" folder.
- PDF4me Add Margin to PDF runs with Top 25, Bottom 25, Left 40, Right 25 — adding the 15mm extra binding spine on the left.
- The print-ready PDF is uploaded to the print-on-demand service (Lulu, KDP, BookBaby) via HTTP webhook for production.
- A confirmation email goes to the author with the print job ID and estimated completion date.
- An Airtable row logs the manuscript title, author, date, and print service order number for tracking.
- A Google Forms trigger fires when a researcher submits a paper for journal review.
- Add Margin to PDF runs with 25.4mm on all sides (exact 1-inch APA Style requirement).
- The properly margined paper is automatically submitted to the journal portal via HTTP webhook to their submission API.
- A Gmail step confirms submission to the researcher with their tracking ID and the journal's expected review timeline.
- Google Sheets logs the paper title, journal, author, and submission date for the research office.
- A paralegal saves a draft motion or brief PDF to a "Court Filings" SharePoint folder.
- Add Margin to PDF runs with Top 38mm (1.5 inches for filing stamps and case number block), Left 25, Right 25, Bottom 25.
- The court-compliant PDF is automatically uploaded to the e-filing system (PACER, state court portals) via HTTP webhook.
- A confirmation email to the attorney includes the e-filing receipt number and the court's docket entry.
- The original draft and the court-ready version are both archived in the case file with appropriate metadata.