Skip to main content

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.

What this module does
PDF4me Add HTML Header and Footer inserts a richly formatted HTML header or footer into every page of a PDF inside your Make scenario. Write any HTML, company logo as base64, page number variables, dates, confidentiality notices, and the module renders it onto the document. Set margins in millimetres, skip the first page for cover sheets, and target specific page ranges. The output PDF is ready for email, storage, or further PDF4me processing.
Location must be set to Header or Footer, not both in one call

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.

Embed images as base64, external URLs may not resolve server-side

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.

Set Margin Top or Bottom to match your header/footer height

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.

Related Blog Posts(1)

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.

Make PDF4me Add HTML Header and Footer module

Set HTML Content to your markup, choose Location as Header or Footer, and configure margin values in mm.

  • 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
ParameterRequiredWhat it doesExample
ConnectionRequiredPDF4me API connection. Click Add and paste your API key the first time.My PDF4me connection
File NameRequiredFilename of the source PDF including the .pdf extension.report.pdf
Document / public file URLRequiredBinary content of the source PDF. Map from a prior cloud storage download or Dropbox get file module.1. Data
HTML ContentRequiredHTML markup to render. Use pageNumber and totalPages as placeholder variables. Embed logos as base64 data URIs.<p>Page: pageNumber</p>
LocationRequiredFooter or Header. Each module call targets one location. Chain two calls for both header and footer.Footer
Skip First PageConditionalYes to omit the header or footer from the first page. Use for cover sheets and title pages.Yes
PagesConditionalTarget pages. Enter all for every page or specific page numbers and ranges.all
Margin top in mmOptionalDistance from the top page edge in millimetres. Increase to prevent the header overlapping the body.10
Margin bottom in mmOptionalDistance from the bottom page edge in millimetres. Increase to prevent the footer overlapping the body.10
Margin left in mmOptionalDistance from the left page edge in millimetres.15
Margin right in mmOptionalDistance 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

FieldTypeWhat it contains
Document DataBinaryThe PDF with HTML header or footer rendered on all targeted pages. Map into a cloud storage upload or email attachment field.
Document NameStringOutput filename of the branded PDF.

The PDF4me Add HTML Header Footer module in Make provides comprehensive scenario templates for header/footer automation:

Automated Report Header Footer Branding Scenario

Transform your reports with automated professional header/footer addition:

Complete Scenario Steps:

  1. Trigger: Monthly report generation completed
  2. Get Report PDF: Download generated report from system
  3. Prepare HTML Header: Build HTML with company logo and date
  4. Prepare HTML Footer: Create footer with page numbers and confidential notice
  5. Add Header: Insert branded header to all pages
  6. Add Footer: Insert footer skipping first page
  7. Upload Branded Report: Save to Google Drive reports folder
  8. 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

Industry Use Cases & Applications

  • 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

Common Questions

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>.

Get Help