web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Unanswered

Print a URL to PDF?

(0) ShareShare
ReportReport
Posted on by

I have a list of 100's of URLs that I need to visit and print to pdf if possible. The URLs are for salesforce reports, I generated by creating a url based off the record ID within a specific object.

 

Is there a way to make a flow that would pull the HTML from these pages and convert to pdf? I could use the encodian api to convert HTML to PDF but for some reason my issue right now is when I make a GET call to the URL, it redirects twice before finally giving me a 200 response but the response is gibberish.

Categories:
I have the same question (0)
  • cchannon Profile Picture
    4,702 Moderator on at

    Yeah, Get requests will not be able to pull all websites. In fact, most complex websites simply will not come back correctly from a simple Get. This is for a few reasons: deliberate action from site owners to block scraping, Iframed content, complex nested SPAs, and dynamic HTML content just to name a few. Your Get --> convert to PDF --> Print pattern will probably work for some sites, so it will save you some effort, but you're going to have to use a browser to do the rest.

     

    Consider using Power Automate Desktop for this instead. With Power Automate Desktop, you can store your list of sites in an array (or Spreadsheet, or in Salesforce) and loop through that list one at a time, opening a browser window, copying the url, letting it load, and using the native Browser Print to PDF capability. for hundreds of URLs, it could probably be done with the whole load in a few minutes.

  • PatrickMcLeanGL Profile Picture
    on at

    Sweet thanks for the suggestion, going to try that now.

  • PatrickMcLeanGL Profile Picture
    on at

    A little more difficult than I thought.

     

    I managed to follow these instructions: Webpage-to-PDF with Power Automate Desktop! - Power Platform Community (microsoft.com)

     

    But it's just printing the authentication screen. I need to figure out how to authenticate it first in this process.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 664

#2
Haque Profile Picture

Haque 460

#3
Valantis Profile Picture

Valantis 357

Last 30 days Overall leaderboard