Skip to main content

Generate Document from HTML in Power Automate

PDF4me Generate Document from HTML action delivers powerful mail merge automation in Power Automate with batch generation of multiple personalized documents from HTML templates and structured data. This comprehensive document generation service processes data arrays to create personalized certificates, invoices, reports, and letters—transforming bulk document production and personalization workflows across Microsoft 365 ecosystem.

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 document processing services.

Generate Document from HTML Power Automate

Key Features

  • Bulk Document Generation: Create multiple personalized documents from single template
  • HTML Template Support: Use HTML with CSS styling for custom layouts
  • Data Merge: Combine HTML templates with JSON or XML data sources
  • Batch Processing: Generate one document per data array item automatically
  • Flow Integration: Process generated documents array in subsequent actions

Parameters

Complete list of parameters for the Generate Document from HTML action. Configure these parameters to control bulk document generation.

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

ParameterTypeDescriptionExample
Template File Data***BinaryHTML Template Content
• HTML file with merge field placeholders
• Use {{fieldname}} syntax for data fields
• Supports CSS styling and custom layouts
• Compatible with SharePoint, OneDrive sources
[HTML Content]
Template File Name***StringHTML Template Filename
• Specify filename with .html extension
• Required for template identification
• Supports dynamic naming from flow variables
• Maintains template tracking in workflows
certificate_template.html
Data string***StringMerge Data Array (JSON or XML)
• Array of data items for document generation
• One document generated per array item
• Supports JSON or XML format
• Map from database queries or previous actions
[{"name":"John"},{"name":"Jane"}]

Output

The PDF4me Generate Document from HTML action returns comprehensive output data for seamless Power Automate flow integration:

Table View

Response data in a structured table format:

ParameterTypeDescription
Output DocumentsArray of ObjectsCollection of all generated documents
File NameStringIndividual document filename per array item
File ContentBinaryIndividual document binary content per item

Workflow Examples

The PDF4me Generate Document from HTML action in Power Automate provides comprehensive workflow templates designed for real-world business scenarios:

Automated Bulk Certificate Generation Workflow

Transform your credential issuance with automated HTML template certificate generation:

Complete Workflow Steps:

  1. Trigger: Training course completion data exported from LMS
  2. Get Participants: Retrieve completion list with names, dates, scores
  3. Prepare Data: Format participant data as JSON array
  4. Get Template: Retrieve HTML certificate template from SharePoint
  5. Generate Certificates: Create certificate PDF for each participant
  6. Loop Documents: Apply to each certificate in output array
  7. Email Individual: Send personalized certificate to each participant
  8. Archive All: Store all certificates in completion records library

Business Benefits:

  • Generates 500+ certificates automatically per course completion
  • Eliminates manual certificate creation saving 30+ hours
  • Ensures consistent professional certificate formatting
  • Enables instant certificate delivery to all participants

Industry Use Cases & Applications

Education & Training Use Cases

  • Certificate Issuance: Generate course completion certificates in bulk
  • Report Cards: Create personalized student progress reports
  • Enrollment Letters: Produce admission confirmation letters
  • Transcripts: Generate official academic transcripts

Get Help