Add Image Header Footer to Excel in Power Automate
PDF4me Add Image Header Footer to Excel is a Power Automate action that inserts a logo, watermark, or branding image into an Excel worksheet's header or footer section. Use it to stamp a company logo on weekly reports, mark confidential files with a security image, or co-brand client deliverables, without opening Excel manually.
What this action does
PDF4me Add Image Header Footer to Excel maps an image file into a workbook's header or footer, aligned left, center, or right, on specific worksheets or the whole file. Page margins around the image are configurable in centimeters via Advanced parameters.
How Do I Authenticate My Power Automate Flow?
Every PDF4me action in Power Automate requires a valid connection. Create or select one that holds your PDF4me API key so the flow can authenticate Excel image formatting requests securely.
Important Facts You Should Not Miss

Map File Content, File Name, and Image Content, then choose Image Position and IsHeader placement.
Parameters
Required: File Content, File Name, and Image Content. Image Position and IsHeader have working defaults. Margins and worksheet targeting are conditional advanced parameters.
| Parameter | Required | What it does | Example |
|---|---|---|---|
| File Content | Required | Base64 content of the source Excel workbook, mapped from SharePoint, OneDrive, or another prior action. | [File Content from Get file content] |
| File Name | Required | Excel filename including extension (.xlsx or .xls), used for processing and output identification. | add_header_sample_file.xlsx |
| Image Content | Required | Base64 content of the logo or branding image, mapped from SharePoint, OneDrive, or an email attachment. PNG, JPG, JPEG, or GIF. | [File Content from Get file content] |
| Image Position | Optional | Horizontal alignment within the header/footer zone: Left, Center, or Right. Defaults to Center. | Center |
| IsHeader | Optional | Yes places the image in the header, No places it in the footer. Defaults to Yes. | Yes |
| Top Margin | Conditional | Advanced parameter. Top page margin in centimeters, controls spacing from the top edge and affects header placement. | 5 |
| Bottom Margin | Conditional | Advanced parameter. Bottom page margin in centimeters, controls spacing from the bottom edge and affects footer placement. | 5 |
| Left Margin | Conditional | Advanced parameter. Left page margin in centimeters, controls overall page layout spacing. | 1.9 |
| Right Margin | Conditional | Advanced parameter. Right page margin in centimeters, controls overall page layout spacing. | 1.9 |
| Worksheet Names | Conditional | Advanced parameter. List of worksheet names to target. Leave empty along with Worksheet Indexes to apply to every sheet. | ["Sheet1", "Report"] |
| Worksheet Indexes | Conditional | Advanced parameter. List of 1-based worksheet indexes to target. Combines with Worksheet Names if both are set. | [1, 2] |
| Culture Name | Conditional | Advanced parameter. Culture/locale code for processing, for example en-US or de-DE. Blank uses the invariant culture. | en-US |
Note: If both Worksheet Names and Worksheet Indexes are empty or null, the image is applied to every worksheet in the workbook.
Output Fields
| Field | Type | What it contains |
|---|---|---|
document | Base64 | The Excel workbook with the image header/footer applied. |
Success | Boolean | true if the action completed, false if it failed. |
ErrorMessage | String | Error description, null when Success is true. |
Errors | Array | Detailed error objects, empty when Success is true. |
What Do the Common Error Messages Mean?
| Error Message | Cause | Solution |
|---|---|---|
| Request is empty | The request object is null. | Provide a valid request object. |
| Document is empty | File Content is null or empty. | Provide a valid Excel document in File Content. |
| Image content is empty | Image Content is null or empty. | Provide valid image content from a prior action. |
| Invalid worksheet selection | Worksheet names or indexes don't exist or are out of range. | Use existing worksheet names or valid 1-based indexes. |
| Available worksheets in workbook (X total) | Informational message shown when worksheet selection validation fails. | Review worksheet names/indexes and use a valid value from the X available worksheets. |
How Do I Set Up Add Image Header Footer in Power Automate?
- Add PDF4me → Excel - Add Image Header Footer to your Power Automate flow.
- Map File Content and File Name from a previous action (SharePoint, OneDrive, or Get file content).
- Map Image Content from the logo, watermark, or branding image file.
- Set IsHeader to Yes for a header or No for a footer, and choose Image Position: Left, Center, or Right.
- Expand Advanced parameters to set Top, Bottom, Left, and Right Margin, or target specific Worksheet Names/Worksheet Indexes. Run the flow, the branded workbook returns as document.
Typical Setups
Workflow ExamplesCommon Power Automate flow patterns using Add Image Header Footer.
- A scheduled flow triggers every Monday morning.
- Get file content retrieves the weekly performance report from SharePoint.
- Add Image Header Footer inserts the company logo, IsHeader Yes, Image Position Center, Worksheet Names and Worksheet Indexes left empty to cover every sheet.
- The branded report is emailed to management and archived.
- A flow triggers when a sensitive Excel file lands in a restricted SharePoint folder.
- Get file content retrieves the workbook, and a "Confidential" stamp image is fetched from assets.
- Add Image Header Footer sets IsHeader No, Image Position Center, targeting Worksheet Names ["Sheet1", "Summary"] only.
- The stamped file is emailed to authorized reviewers only.
- A flow triggers when a project deliverable is marked Final.
- Add Image Header Footer inserts the internal company logo, Image Position Right, IsHeader Yes.
- A second Add Image Header Footer call inserts the client's logo, Image Position Left, on the same worksheets.
- The dual-branded workbook is sent to the client stakeholder.
Practical Tips
Cheat Sheet
| Field | Value |
|---|---|
| Action | Excel - Add Image Header Footer |
| Required fields | File Content, File Name, Image Content |
| Placement fields | Image Position (Left/Center/Right, default Center), IsHeader (Yes/No, default Yes) |
| Advanced parameters | 7 total: Top/Bottom/Left/Right Margin (cm), Worksheet Names, Worksheet Indexes, Culture Name |
| Output | document (Base64 workbook) + Success + ErrorMessage + Errors |
Common Questions
Industry Use Cases & Applications
- Finance & Accounting
- Sales & Marketing
- Operations & Manufacturing
- Legal & Professional Services
- Financial Statements: Add company logo headers to quarterly reports
- Audit Documents: Apply audit firm logo watermarks in footers
- Expense Reports: Add corporate logo headers for expense submissions
- Sales Reports: Insert company branding logos on weekly sales reports
- Customer Presentations: Add client co-branding logos to deliverables
- Inventory Reports: Insert warehouse location logos on inventory sheets
- Quality Reports: Apply quality certification logos in headers
- Client Reports: Insert law firm logo headers on client deliverables
- Billing Statements: Insert company logo on legal billing reports