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 / Convert file using pat...
Power Automate
Unanswered

Convert file using path - OneDrive for Business - Convert to PDF - Landscape

(1) ShareShare
ReportReport
Posted on by 2

I have a flow that works fine converting an HTML document to PDF.  

However I need it to be a Landscape PDF so I don't get word wrapping as this messes up the format.

I have added the HTML attribute "body width=276mm" to the HTML and this has stopped the wrapping, but the end of the lines are now just missing from the portrait PDF document.

Can I force the PDF to be landscape?

I don't want to use an external tool.

Thanks

 

Categories:
I have the same question (0)
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hey @Pete_Thompson 

     

    There is no way to force the orientation of the page. This feature is currently in preview feature that is why you cannot do much customization as part of this.

    I have worked on a similar scenario and keeping the width throughout the html document under 500px worked fine for me. Since you have passed the width as 256mm it is working. I would suggest you add this width parameter to the child tags as well. I know this will require some extra effort but in the end, it will convert the expected pdf.

    If you think this should be added as a capability, please raise an idea or upvote if exist already on: 

    https://powerusers.microsoft.com/t5/Power-Automate-Ideas/idb-p/MPAIdeas 

     

    Hope this Helps!

     

    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!

  • G0Springs Profile Picture
    134 on at

    @Pete_Thompson and @yashag2255 

     

    May I ask how you added the HTML attribute "body width=276mm" to the HTML to stop the wrapping.

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard