Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

HTML to PDF

Posted on by 35

Hi,

I'm trying to create a c# or js code that captures an html code and transforms it into a pdf, could anyone help me with this process?

thankful,

Felipe

  • Felipe Kavai Profile Picture
    Felipe Kavai 35 on at
    RE: HTML to PDF

    Yes, I need the code because I don't want the user to save the file on one drive, but rather that the file is downloaded directly to the machine.

  • Suggested answer
    Pedro Azevedo Profile Picture
    Pedro Azevedo 830 User Group Leader on at
    RE: HTML to PDF

    Hi Felipe,

    This needs to be accomplished with code? Last time I had that requirement I used Power Automate, there is a Convert action in One Drive For Business that allows transform a file in multiple type of files, one of them HTML.

    If you are creating that HTML file in C# you can still use this option, you can put that code inside of an Action, so Power Automate that call that action that returns a HTML string, save that HTML string as HTML file in One Drive For Business and afterwards convert the file to PDF.

    Thank you,

    Pedro Azevedo

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans