Add HTML Header and Footer to PDF in Make
Add HTML Header and Footer is a Make module that automatically adds custom headers and footers to PDF documents using HTML and CSS, supporting company logos, page numbers, dates, and confidentiality notices on every page. Use it to brand PDFs in Make workflows and add PDF headers and footers without manual Acrobat editing.
Each module call inserts content in one location only, either Header or Footer. To add both a header and a footer, chain two modules: the first adds the header (mapping the output Doc Data as input to the second), and the second adds the footer. This two-step chain is the standard pattern for full document branding.
If your header includes a company logo, convert the image to a base64 data URI and embed it inline in the HTML: <img src="data:image/png;base64,..." />. External image URLs may not resolve during server-side rendering, resulting in a broken image in the header. Base64 encoding guarantees the image is always rendered correctly.
If the header or footer overlaps the main page content, increase Margin Top in MM (for headers) or Margin Bottom in MM (for footers) to push the content area away from the edge. A 10-15mm margin is typical for single-line footers; taller multi-line headers may need 20-25mm to avoid overlap.
Authenticating Your API Request
To access the PDF4me Web API through Make, every request must include proper authentication credentials. Authentication ensures secure communication and validates your identity as an authorized user, enabling seamless integration between your Make scenarios and PDF4me's powerful header/footer services.

Set HTML Content to your markup, choose Location as Header or Footer, and configure margin values in mm.
What are the key features of Add HTML Header and Footer?
- HTML Formatting: Use HTML and CSS for rich header/footer design
- Dynamic Content: Include page numbers, dates, and dynamic variables
- Logo Embedding: Insert company logos and branding images
- Page Range Control: Apply to specific pages or skip first page
- Margin Control: Fine-tune positioning with margin settings
How do I configure Add HTML Header and Footer in Make?
| Parameter | Required | What it does | Example |
|---|---|---|---|
| Connection | Required | PDF4me API connection. Click Add and paste your API key the first time. | My PDF4me connection |
| File Name | Required | Filename of the source PDF including the .pdf extension. | report.pdf |
| Document / public file URL | Required | Binary content of the source PDF. Map from a prior cloud storage download or Dropbox get file module. | 1. Data |
| HTML Content | Required | HTML markup to render. Use pageNumber and totalPages as placeholder variables. Embed logos as base64 data URIs. | <p>Page: pageNumber</p> |
| Location | Required | Footer or Header. Each module call targets one location. Chain two calls for both header and footer. | Footer |
| Skip First Page | Conditional | Yes to omit the header or footer from the first page. Use for cover sheets and title pages. | Yes |
| Pages | Conditional | Target pages. Enter all for every page or specific page numbers and ranges. | all |
| Margin top in mm | Optional | Distance from the top page edge in millimetres. Increase to prevent the header overlapping the body. | 10 |
| Margin bottom in mm | Optional | Distance from the bottom page edge in millimetres. Increase to prevent the footer overlapping the body. | 10 |
| Margin left in mm | Optional | Distance from the left page edge in millimetres. | 15 |
| Margin right in mm | Optional | Distance from the right page edge in millimetres. | 15 |
| Margin Right in MM | Double | Right Margin Spacing
• Distance from page right edge in millimeters
• Controls horizontal positioning
• Creates right padding for header/footer
• Align with document margins | 15 |
Output
| Field | Type | What it contains |
|---|---|---|
| Document Data | Binary | The PDF with HTML header or footer rendered on all targeted pages. Map into a cloud storage upload or email attachment field. |
| Document Name | String | Output filename of the branded PDF. |
When should I use Add HTML Header and Footer in Make?
The PDF4me Add HTML Header Footer module in Make provides comprehensive scenario templates for header/footer automation:
- Report Branding
- Contract Footers
- Confidential Notice
- Proposal Branding
Automated Report Header Footer Branding Scenario
Transform your reports with automated professional header/footer addition:
Complete Scenario Steps:
- Trigger: Monthly report generation completed
- Get Report PDF: Download generated report from system
- Prepare HTML Header: Build HTML with company logo and date
- Prepare HTML Footer: Create footer with page numbers and confidential notice
- Add Header: Insert branded header to all pages
- Add Footer: Insert footer skipping first page
- Upload Branded Report: Save to Google Drive reports folder
- Email Stakeholders: Send professionally branded report
Business Benefits:
- Brands 50+ reports monthly automatically
- Ensures consistent professional report appearance
- Eliminates manual header/footer addition
- Maintains company branding across all reports
Automated Contract Footer Addition Scenario
Streamline your contract formatting with automated footer insertion:
Complete Scenario Steps:
- Trigger: Contract finalized and ready for execution
- Get Contract PDF: Download contract document
- Build Footer HTML: Create footer with contract number and date
- Add Page Numbers: Include page X of Y in footer
- Add Footer: Insert footer to all contract pages
- Skip Cover Page: Exclude footer from first page
- Upload Final: Save to contracts archive
- Email Parties: Send formatted contract to signatories
Business Benefits:
- Formats 80+ contracts monthly automatically
- Ensures professional contract appearance
- Adds important reference information automatically
- Maintains consistent contract formatting
Automated Confidentiality Footer Addition Scenario
Optimize your document security with automated confidential footers:
Complete Scenario Steps:
- Trigger: Confidential document generated
- Get Document PDF: Download sensitive document
- Create Confidential Footer: Build HTML with confidentiality notice
- Add Classification: Include document classification level
- Add Footer: Insert confidential notice on all pages
- Add Password: Apply password protection
- Upload Secure: Save to secure archive folder
- Email Authorized Users: Send with password separately
Business Benefits:
- Marks 100+ confidential documents monthly automatically
- Ensures clear confidentiality notices on all pages
- Maintains compliance with security policies
- Provides visual security classification
Automated Proposal Header Footer Branding Scenario
Enhance your proposals with automated professional formatting:
Complete Scenario Steps:
- Trigger: Proposal content finalized
- Get Proposal PDF: Download proposal document
- Build Header HTML: Create header with company logo and client name
- Build Footer HTML: Create footer with proposal number and date
- Add Header: Insert branded header to all pages
- Add Footer: Insert footer with page numbers
- Upload Final Proposal: Save to proposals folder
- Email Client: Send professionally branded proposal
Business Benefits:
- Brands 60+ proposals monthly automatically
- Provides professional appearance for client proposals
- Includes important tracking information in footers
- Maintains consistent proposal branding
Industry Use Cases & Applications
- Corporate & Business
- Legal & Compliance
- Marketing & Communications
- Finance & Accounting
- Report Branding: Add company headers to business reports
- Proposal Formatting: Insert branded headers/footers in proposals
- Document Tracking: Add document numbers in footers
- Professional Formatting: Brand all outgoing documents
- Contract Formatting: Add contract reference footers
- Legal Notices: Insert required legal disclaimers
- Confidentiality Notices: Add classification footers
- Page Tracking: Include page numbers for legal documents
- Brochure Branding: Add company headers to marketing materials
- White Papers: Insert professional headers/footers
- Case Studies: Brand client success stories
- Presentation Decks: Add company branding to slides
- Financial Statements: Add company header to statements
- Invoice Footers: Insert payment terms in footers
- Report Headers: Brand financial reports professionally
- Audit Documents: Add document tracking information
Common Questions
Can I add both a header and a footer in one Make module call?
No. Each module call targets either Header or Footer exclusively. Chain two calls: the first adds the header, its Document Data output feeds the second, which adds the footer. See the Make help centre on scenarios for setup guidance.
How do I embed a company logo in the HTML?
Convert your logo to a base64 data URI, then embed it inline: <img src="data:image/png;base64,..." style="height:30px" />. External URLs may not resolve during server-side PDF rendering. Base64 encoding is reliable and does not require network access.
Which placeholders can I use for page numbers?
Use pageNumber for the current page and totalPages for the total count in your HTML Content. For example: <p style="font-size:10px">Page pageNumber of totalPages</p>.