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 Platform Community / Forums / Power Automate / converting html into P...
Power Automate
Answered

converting html into PDF using Power automate cloud flows using landscape mode

(0) ShareShare
ReportReport
Posted on by

Hi Community,

I am working on a Power Automate cloud flow where I need to generate a PDF from an HTML file. However, I require the output PDF to be in Landscape mode rather than the default Portrait mode. Currently, I am using the "OneDrive for Business – Convert File" to generate the PDF, but I can't find an option to explicitly set the orientation to Landscape.

Below are the steps I'm following:

  1. Creating the HTML dynamically in the flow.
  2. Converting the HTML to PDF using the available actions.

The PDF is generated successfully, but it always defaults to Portrait orientation.

Could someone guide me on how to ensure the PDF is generated in Landscape mode? Is there a way to specify the page orientation while converting HTML to PDF?

Any help or pointers would be greatly appreciated!

Thanks in advance!

Download_icon.png
Categories:
I have the same question (0)
  • Verified answer
    CFernandes Profile Picture
    8,482 Most Valuable Professional on at
    Hey Mate, You will need to inject CSS in your HTML - I did a tutorial, see - Power Automate HTML to PDF Conversion Tips with ChatGPT 
     
    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
     
    P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.

     

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!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 589

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 284 Super User 2026 Season 1

Last 30 days Overall leaderboard