Skip to main content

Add Text Header Footer to Excel in Power Automate

PDF4me Add Text Header Footer to Excel action enables adding customizable text headers and footers to Excel documents in Power Automate with comprehensive formatting control. This versatile feature supports document titles, page numbers, dates, branding, and custom text with full control over font styling (family, size, color, name), transparency levels, rotation angles, and orientation options (horizontal, vertical, diagonal, upside-down), perfect for document branding and professional presentation across Microsoft 365 workflows.

Authenticating Your API Request

To access the PDF4me Web API through Power Automate, every request must include proper authentication credentials. Authentication ensures secure communication and validates your identity as an authorized user, enabling seamless integration between your Power Automate flows and PDF4me's powerful Excel formatting services.

Add Text Header Footer to Excel Power Automate

Key Features

  • Custom Text Content: Add any text as header or footer on Excel documents
  • Font Customization: Control font family, size, color, and specific font names
  • Transparency Control: Set semi-transparent (50% opacity) or fully opaque (100%) text
  • Rotation & Orientation: Apply rotation angles or use preset orientations (horizontal, vertical, diagonal, upside-down)
  • Culture Support: Specify culture codes for proper text rendering and formatting

Parameters

Complete list of parameters for the Add Text Header Footer to Excel action. Configure these parameters to control text formatting.

Important: Parameters marked with an asterisk (***) are required and must be provided for the action to function correctly.

ParameterTypeDescriptionExample
File Content***Base64Source Excel File Content
• Map Excel file from previous action output
• Supports Excel files from SharePoint, OneDrive, email attachments
• Can be dynamically retrieved from flow variables
• Must be valid Excel document (.xlsx, .xls formats)
[File Content from Get File]
File Name***StringExcel Document Name
• Specify Excel file name with extension (.xlsx, .xls)
• Used for processing and output file naming
• Must include proper file extension
• Supports dynamic naming from flow variables
data.xlsx
Watermark Text***StringHeader/Footer Text Content
• Text to be displayed as header or footer
• Can include document title, dates, page numbers
• Supports dynamic content from flow variables
• Any alphanumeric characters and symbols
Confidential Report 2024
Font FamilyStringFont Family Name
• Font family to use for text
• Common families: Arial, Times New Roman, Calibri
• Default: Arial if not specified
• Used unless FontName overrides it
Arial
Font SizeNumberText Size in Points
• Font size of header/footer text
• Standard range 8-72 points
• Default: 72 if not specified
• Larger values for better visibility
12
Font ColorStringText Color
• Hex color code (e.g., "#FF0000") or color name
• Supports standard HTML color names
• Determines text appearance
• Default: black if not specified
#0000FF
Semi TransparentBooleanTransparency Level
True - Apply 50% opacity (semi-transparent)
False - Apply 100% opacity (fully opaque)
• Default: false (fully opaque)
• Useful for watermark-style headers
false
RotationNumberRotation Angle in Degrees
• Rotation angle for text (0-360 degrees)
• Default: 0 (no rotation)
• Clockwise rotation
• Note: Orientation parameter takes priority if provided
45
Font NameStringSpecific Font Name
• Specific font name to use
• Overrides FontFamily if provided
• Use for precise font control
• Example: "Arial Bold", "Calibri Light"
Arial Bold
OrientationStringText Orientation
Horizontal - Standard left-to-right text
Vertical - Top-to-bottom vertical text
Diagonal - Diagonal text across page
Upside-Down - 180-degree rotated text
• Takes priority over Rotation parameter
Horizontal
Culture NameStringCulture Code
• Culture/locale code for text rendering
• Examples: "en-US", "de-DE", "fr-FR"
• Ensures proper character rendering
• Affects date/number formatting if applicable
en-US

Note: The Orientation parameter takes priority over the Rotation parameter. If Orientation is specified, the Rotation value will be ignored.

Output

The PDF4me Add Text Header Footer to Excel action returns comprehensive output data for seamless Power Automate flow integration:

Table View

Response data in a structured table format:

ParameterTypeDescription
documentBase64Excel document with text header/footer applied
SuccessBooleantrue if operation successful, false if failed
Error MessageStringError description (null if successful)
ErrorsArrayList of detailed error information (empty array if successful)

Common Error Messages

Understanding and troubleshooting errors helps ensure smooth Excel text header/footer insertion workflows:

Error MessageCauseSolution
"Request is empty"Request object is nullProvide valid request object
"Document is empty"Document object is nullProvide valid Excel document
"Watermark text is empty"WatermarkText is null or emptyProvide valid text content for header/footer
"Invalid font specification"Font family or font name is invalidUse valid font names available in Excel
"Invalid color format"FontColor has invalid hex code or color nameUse valid hex format (e.g., "#FF0000") or standard color names

Workflow Examples

The PDF4me Add Text Header Footer to Excel action in Power Automate provides comprehensive workflow templates designed for real-world business scenarios:

Automated Financial Report Header/Footer Workflow

Transform your financial reporting with automated header and footer formatting:

Complete Workflow Steps:

  1. Trigger: Scheduled trigger - monthly financial close on 5th at 8 AM
  2. Get Excel Report: Retrieve monthly financial report from SharePoint
  3. Add Header: Insert "Financial Report - [Month/Year]" header text
  4. Set Font: Apply Calibri 14pt font in corporate blue (#003366)
  5. Add Footer: Insert "Confidential - Internal Use Only" footer
  6. Set Transparency: Apply semi-transparent footer (50% opacity)
  7. Email Distribution: Send formatted report to finance team
  8. Archive: Store branded report in finance document library

Business Benefits:

  • Formats 12 financial reports monthly automatically
  • Ensures consistent branding on all financial documents
  • Adds professional appearance to critical reports
  • Saves 30 minutes per report in manual formatting time

Industry Use Cases & Applications

Finance & Accounting Use Cases

  • Financial Statements: Add headers with company name and reporting period
  • Budget Reports: Insert confidentiality footers on budget documents
  • Audit Documents: Apply audit date and version information in headers
  • Expense Reports: Add submission date and approval status in footers

Get Help