Skip to main content

Notifications

Community site session details

Community site session details

Session Id : wHxM8GR5wnX68k8CG+DSnu
Power Automate - Building Flows
Unanswered

OD4B Convert .hml to PDF

Like (0) ShareShare
ReportReport
Posted on 1 Oct 2018 19:37:15 by 36

Hello,

 

I am 100% sure I am doing something wrong but I cannot figure out what it is.  Please help!

I have a PowerApp that displays a waiver in an HTML Text control.

I have a button and the OnSubmit function runs a flow that saves the HTML.HTMLText as an .htm file in OneDrive.

This is all working fine but, when I add an action to the flow to convert the .htm to a PDF, the resulting PDF shows all the HTML tags...

 

I followed the article written by @paulculmsee here: http://www.cleverworkarounds.com/2018/03/09/three-ways-to-convert-html-to-pdf-using-microsoft-flow/

"<p><strong>SIGNATURE OF PARENT OR LEGAL GUARDIAN REQUIRED</strong></p>
<p>As the parent or legal guardian of the minor child Participant named above, I hereby make and enter into each and every agreement, representation, waiver, and release described above on behalf of myself, the Participant, and any other parent or legal guardian of the Participant, intending that they be binding on me, the Participant, and our respective heirs, executors, administrators, and assigns. By affixing my signature below I represent that I possess the authority to act on behalf of all of the minor child Participant&rsquo;s parents or legal guardians and that I intend to give up my right, and the right of any other parent or legal guardian to maintain any claim or suit against HOST arising out of the Participant&rsquo;s participation in any Activities involving HOST in any way. I further agree to hold harmless, defend, and indemnify HOST of and from any claims from third parties arising from the minor child Participant&rsquo;s participation in any activities affiliated with HOST.</p>"
  • v-bacao-msft Profile Picture
    on 04 Oct 2018 at 08:02:41
    Re: OD4B Convert .hml to PDF

    Hi @memsim1010,

     

    Could you share screenshots of your Flow configuration, especially the action configuration that converts Html files to PDF?

    From your description, the configuration before the action related to the conversion file is fine. I did the test on my side, and the method used is somewhat different from the one provided in the article.

    Maybe you could use OneDrive for business--Get file content action directly, then use Convert Html to Text to convert content.

    Finally configure OneDrive for Business---Create file action, using The plain text content output from the previous step.

     26.PNG

    Please take a try.

     

    Regards,

    Barry

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Building Flows

#1
stampcoin Profile Picture

stampcoin 97

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 70 Super User 2025 Season 1

#3
David_MA Profile Picture

David_MA 48 Super User 2025 Season 1

Overall leaderboard
Loading started