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

Community site session details

Session Id :
Power Automate - Building Flows
Answered

How to convert Create HTML table step to PDF file using Acrobat API

(0) ShareShare
ReportReport
Posted on by 23
Dear Community Members,
I have created a flow which takes data from Excel, creates a HTML table and send individual emails. Now I also want to send a PDF file for the table created as an attachment. I have Acrobat API and am trying to use.
If anyone know how I can do this, that would be really great.
 
Regards 
Subodh Gupta
I have the same question (0)
  • Verified answer
    Mark Nanneman Profile Picture
    989 Super User 2025 Season 2 on at
    How to convert Create HTML table step to PDF file using Acrobat API
    I know you can do this with Adobe PDF Services--I believe you might be able to use your credentials from Acrobat API, but I can't remember for sure.
     
    That said, you might want to consider trying the standard OneDrive action "Convert file" to target type PDF.  It works OK on simple HTML documents.
     
    OneDrive for Business:
     
    Here's the Adobe PDF Services actions you can use.
     
  • SG-14121036-0 Profile Picture
    23 on at
    How to convert Create HTML table step to PDF file using Acrobat API
    Thanks Mark,
    It works, but I have small request. In the create file, I cannot put Organisation Logo. Is there a way to put Log in this and make it more customize.
    Regards
     
    Subodh
  • Verified answer
    Mark Nanneman Profile Picture
    989 Super User 2025 Season 2 on at
    How to convert Create HTML table step to PDF file using Acrobat API
    Yes you can convert an HTML with an image into a PDF with the image using the OneDrive actions.  You just need to inline encode the image content.
     
    Use this template for your src property of your img element:
    src="data:<content-type>;base64,<base64-encoded-image-content>"
     
    E.g.
    <div>
    <img src="data:@{body('Get_file_content_1')?['$content-type']};base64,@{base64(body('Get_file_content_1'))}" alt="Embedded Image" />
    </div>
    You can do a "Get file content" from a One Drive or SharePoint file, and reference the "$content-type" to get the content type (e.g. "image/png") and just use base64() on the output of the file content action for the data.
     
    $content-type:
    base64 expression:
     
    Example:


    Hope this helps!

    If this helped you, please click "Does this answer your question" and give it a like to help others in the community (+ close the ticket)!

    Power Platform Developer | LinkedIn: Mark Nanneman | Blog: Power Stuff  | YouTube: Mark's Power Stuff  |
  • SG-14121036-0 Profile Picture
    23 on at
    How to convert Create HTML table step to PDF file using Acrobat API
    Many thanks Mark.. It worked

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 655 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 371 Moderator

#3
chiaraalina Profile Picture

chiaraalina 276

Last 30 days Overall leaderboard