October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run ScanOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
Automation

How to Convert HTML to PDF in Power Automate

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To convert HTML to PDF in Power Automate, use a connector action that explicitly accepts the kind of input your flow has—HTML, a web URL, or a ZIP package containing a static site—and then save the action’s PDF output with a storage connector. Do not use Word Online (Business) as a raw-HTML converter: its documented PDF action converts a Word document. Connector availability, licensing, and account requirements vary, so confirm them in your tenant before building the flow.

Choose the conversion action by the input you have

Start by identifying what the flow can provide at conversion time. “HTML” can mean a string of markup, an HTML file, a URL to a rendered page, or a packaged static site with CSS and images. Those are not interchangeable inputs: a connector that accepts a URL may not accept a ZIP, and Adobe PDF Services’ documented static-HTML action expects a particular ZIP layout.

What the flow has Relevant documented route Important distinction
HTML content or a web URL Encodian HTML-to-PDF actions, Muhimbi’s HTML action, or PDF4me’s HTML-to-PDF action Check the selected action’s exact input field and whether it accepts markup, a URL, or both.
A static site packaged as a ZIP Adobe PDF Services’ “Convert Static HTML to PDF” The archive must have index.html at its root and include required dependencies, such as CSS and images.
A Word document created earlier in the flow Word Online (Business) document-to-PDF conversion This is a Word-file route, not a documented raw-HTML conversion action.
A URL to convert, using PDF4me PDF4me’s URL-to-PDF action Confirm how the target site handles authentication and dynamic content in your specific flow.

Microsoft Learn connector listings document the capabilities above, but they do not establish equal rendering quality, current pricing, or universal support for authenticated pages and complex CSS. Choose based on your input and test the result with representative pages.

Build a flow for HTML text or a URL

For direct HTML or URL conversion, evaluate the HTML-to-PDF actions listed for Encodian, Muhimbi/Nutrient, and PDF4me in Microsoft Learn. Exact action labels differ by connector; catalog entries include “Convert – HTML to PDF,” “Convert HTML to PDF,” and “Convert Static HTML to PDF.” Treat those as search terms, then inspect the chosen action’s fields rather than assuming one connector’s inputs apply to another.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Identify the input. Determine whether the preceding flow step produces HTML text, an HTML file, or a URL. If it is a file, check whether the connector expects its contents or a path/URL to the file.
  2. Add the conversion connector. In Power Automate, create or edit the flow and add the relevant connector action. Search for the documented HTML-to-PDF action name. Verify the connector is available in your tenant and region and that you can create its connection.
  3. Meet account requirements. Muhimbi’s connector requires a Free or Trial Nutrient Document Converter Online account. Check current licensing and subscription requirements for the connector you select; the cited connector listings do not provide a like-for-like current price comparison.
  4. Map the input and options. Supply the HTML or URL in the corresponding field. Where offered, set page orientation, paper size, viewport, bookmarks, or table of contents. For a page that depends on login or session state, verify that the connector can reach it with the required access; do not assume a public URL action can use your browser’s credentials.
  5. Save the PDF output. Add a file-creation action from the storage connector you use, such as OneDrive or SharePoint. Map the conversion action’s PDF content output into the file-content field, and give the output a .pdf filename. The exact dynamic-content label depends on the connector.
  6. Validate the result. Run the flow with realistic pages and inspect page breaks, fonts, images, CSS, dynamic content, authentication, and output size. Test both short and long pages if both occur in production.

For Encodian, its connector listings describe HTML and URL conversion; the V2 listing exposes page orientation, page size, bookmarks, table of contents, and viewport parameters. Confirm the available controls on the action version you select. PDF4me’s Microsoft Learn listing documents separate HTML-to-PDF and URL-to-PDF actions, which can make the input distinction explicit. These are options, not endorsements.

Convert a static HTML site with Adobe PDF Services

Adobe PDF Services documents a static HTML conversion action that takes a ZIP package. It is not the same as passing an arbitrary remote URL or a lone HTML string. The required archive structure is material: put index.html at the top level of the ZIP, then include the page’s dependencies, such as CSS and image assets, at paths the HTML can resolve.

  1. Prepare the static page and include its local dependencies.
  2. Place index.html at the ZIP archive root, not inside an extra enclosing folder.
  3. Add Adobe PDF Services’ “Convert Static HTML to PDF” action and provide the ZIP input.
  4. Set paper size and header/footer options as needed, if those controls are available in the action.
  5. Save the returned PDF content with your storage connector and inspect the output.

A ZIP containing only the HTML may not be self-contained if the page references external images, stylesheets, or other assets. Include dependencies and validate the rendered file in the actual flow.

Use Word Online only when the flow has a Word file

Word Online (Business) documents an action that converts a selected Word document to PDF. Use that route if the workflow can create or populate a Word document first and the Word-to-PDF step meets your layout needs. The documented action is not evidence that Word Online accepts raw HTML as its input.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Save and troubleshoot the PDF output

OneDrive conversion errors immediately after file creation

If OneDrive conversion fails just after a file has been created and returns “Bad gateway” or “The resource could not be found,” Microsoft’s OneDrive connector documentation recommends increasing the delay between file creation and conversion. It does not give one universally correct delay, so adjust the flow and test rather than treating a particular wait time as guaranteed.

Conversion action is missing or cannot connect

Connector listings and licensing can change. Check availability in the target tenant and region, confirm the relevant account or subscription prerequisite, and verify that the connection was created successfully. Muhimbi’s documented prerequisite is a Free or Trial Nutrient Document Converter Online account.

The action rejects the input

Check the action’s expected input type. A URL, HTML string, HTML file, and ZIP package are different inputs. For Adobe’s static HTML action, verify the ZIP has index.html at the root and contains required dependencies. For PDF4me, select the URL-to-PDF action for a URL rather than assuming the HTML-to-PDF action accepts it.

The PDF is missing content or has unexpected layout

First determine whether the source is static or depends on scripts, remote assets, authentication, or late-loading content. The connector listings cited here do not establish that every such page renders correctly. Test with the same access conditions and representative content that the production flow will encounter; adjust available viewport, orientation, page-size, or header/footer settings where applicable.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The file step produces an empty or unusable PDF

Check that the storage action receives the conversion action’s PDF content output, not its status, metadata, or a URL field. Confirm the destination filename ends in .pdf, then inspect the run history to see whether conversion returned file content before the save step ran.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Plan for reliability, privacy, and cost

Power Automate connector presence alone does not establish that a vendor is suitable for a particular organization. Before adopting a connector, verify its current licensing and account prerequisites, availability in your tenant and region, data-processing and processing-location terms, and whether its access model supports the pages you need. The connector documentation cited here does not establish current vendor pricing or a direct comparison of rendering fidelity.

  • Test real inputs: include pages with images, CSS, long content, and any dynamic or authenticated behavior you rely on.
  • Inspect run history: separate conversion failures from file-save failures and input-mapping mistakes.
  • Allow for timing issues: if OneDrive conversion follows file creation and fails, increase the delay and retest; Microsoft does not specify a fixed wait.
  • Review data handling: HTML and generated PDFs may contain sensitive information. Check the selected provider’s current terms and your organization’s requirements before sending content through a third-party connector.

Or skip the browser setup

If your input is a public webpage URL and you need a clean visual capture rather than conversion of an arbitrary HTML string or ZIP package, ScreenshotNeo can return screenshots or PDFs through one GET request. Cookie and consent banners are accepted like a visitor and 60+ known consent platforms, newsletter popups, and chat widgets can be removed before capture; each cleanup step can be turned off. Bot checks/CAPTCHAs, blank pages, timeouts, failed loads, and cache hits cost nothing, and the response reports the page verdict and billing status in headers. An MCP server provides screenshot tools for AI agents, and HTML/CSS-to-image is supported. This is a URL capture option, not a claim that the example below converts a raw HTML string into a PDF.

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

See the ScreenshotNeo API documentation for available options and output formats. The free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000. Sign up for free.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Frequently Asked Questions

Can I convert HTML to PDF with Power Automate without Word?

Yes. Use a connector action that explicitly supports HTML or URL input; the documented Word Online route is for a Word document.

Does Power Automate’s Word Online connector convert an HTML string directly?

The documented Word Online (Business) PDF action converts a selected Word document, not raw HTML.

Can Adobe PDF Services convert a website URL directly with its static HTML action?

Its documented static HTML action takes a ZIP containing root-level index.html and its dependencies; do not treat it as a URL action.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Read next

Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.