Notifications
Announcements
Hello Folks,
I have a flow, the HTML will convert into PDF. So I have a set of html elements and white spaces seems not working I have already tried the
Can you try <pre> tag . Basically this preserves whitespaces in a text .
---Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
@g1224
Hello!
I also need to retain the font design. Apparently the font and size changed.
with <pre> tag
w/o <pre> tag
here's the html code: <i><pre><h3 style='text-align: right; margin-top: -20px'> S T R I C L Y C O N F I D E N T I A L </h3></pre></i>
Hey @philifova
Can you give an example how you want the white spaces. In my case I did this to get whitespaces:
This is my data:
Then used create html table action:
In the last one I did was:
item().A
' '
item().B
This is how I gave a space between them.
Output I got when I added the space:
Output without any space:
So, you can use the above method to add space. I hope it helps. 🙂
Hi again ! @philifova ,
Can you try putting the styles inside the pre tag ?
Like : <pre style="font-family:calibri;font-size:14pt;"....
@Sundeep_Malik
I'm creating the HTML elements in my PowerApps. (htmlText)
My flow is basically transferring the HtmlText in html file in my one drive. Once done it will start converting to PDF.
The output should be S T R I C L Y C O N F I D E N T I A L (have a multiple space in middle of two words.)
Thanks @Sundeep_Malik @g1224 for the help! Appreciate it big time!
How to convert e-mail / html to PDF with spacing with standard license in Power Automate – Rafal Kobus site (wordpress.com)
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 774 Most Valuable Professional
Michael E. Gernaey 335 Super User 2025 Season 2
Power Platform 1919 248