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
@Pete_Thompson and @yashag2255
May I ask how you added the HTML attribute "body width=276mm" to the HTML to stop the wrapping.
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!