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

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard