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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / PenInput to HTML > PDF
Power Apps
Answered

PenInput to HTML > PDF

(0) ShareShare
ReportReport
Posted on by 27

I am developing app that is a form recollect variables transform on a HTML then send a Email as PDF

is already working but i cannot find a way to paste the signature on the HTML can someone please help me?

 

<td style="width: 33.3011%; height: 25px;"><span style="font-family: arial, helvetica, sans-serif; font-size: 10pt;">CNX</span></td>
<td style="width: 33.3011%; height: 25px;"><span style="font-family: arial, helvetica, sans-serif; font-size: 10pt;">EHSX</span></td>
<td style="width: 33.3041%; height: 25px;"><span style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"><img src=" & JSON(PenInput1.Image, JSONFormat.IncludeBinaryData ) "></span></td>
</tr>
</tbody>
</table>

 

This is the code when a i use <img src=" & JSON(PenInput1.Image, JSONFormat.IncludeBinaryData ) ">

When i execute the flow i get the email and PDF but show this icon like an error 

Iksen_0-1706562765215.png

 

Categories:
  • v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @Iksen 

    You code seems that your code do not have problem. Dose your automate convert html to pdf , like this:

    vyueyunmsft_0-1706576424031.png

    It works good in my side:

    vyueyunmsft_1-1706576448160.png

     

     

    If this reply can help you , you can click mark this reply as solution (Accept solution) which can help more people, thanks in advance! 

     

    Best Regards,

    Yueyun Zhang

     

  • Iksen Profile Picture
    27 on at

    Hey @v-yueyun-msft 

    Mine is working differently i am using a compose on the automate 

    Let me show you mine!

     

    Iksen_0-1706596939901.png

     

    On compose have the HTML code

    Wanted to use this because the other way cannot use the style table or css 

  • v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @Iksen 

    Thanks for your quick response! Can you show what do you put in your Compose action so that i can test it in my side.

     

    Best Regards,

    Yueyun Zhang

  • Iksen Profile Picture
    27 on at

    I have this on Compose

    <table border="1" style="border-collapse: collapse; width: 100%; height: 25px;">
    <tbody>
    <tr>
    <td style="width: 99.9064%; text-align: center; height: 25px;"><span style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #000000;"><strong>ACTIVIDAD DE CAPACITACION</strong></span></td>
    </tr>
    <tr>
    <td style="width: 99.9064%; height: 25px;"><span style="font-family: arial, helvetica, sans-serif; font-size: 10pt;">ADCX</span></td>
    </tr>
    </tbody>
    </table>
    <table border="1" style="border-collapse: collapse; width: 100%; height: 25px;">
    <tbody>
    <tr>
    <td style="width: 24.9766%; text-align: center; height: 25px;"><span style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #000000;"><strong>ORIGINADOR</strong></span></td>
    <td style="width: 24.9766%; text-align: center; height: 25px;"><span style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #000000;"><strong>SUP DEPTO</strong></span></td>
    <td style="width: 24.9766%; text-align: center; height: 25px;"><span style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #000000;"><strong>GTE DEPTO</strong></span></td>
    <td style="width: 24.9766%; text-align: center; height: 25px;"><span style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #000000;"><strong>RECURSOS HUMANOS</strong></span></td>
    </tr>
    <tr>
    <td style="width: 24.9766%; height: 25px;"><span style="font-family: arial, helvetica, sans-serif; font-size: 10pt;">ORX</span></td>
    <td style="width: 24.9766%; height: 25px;"><span style="font-family: arial, helvetica, sans-serif; font-size: 10pt;">SDX</span></td>
    <td style="width: 24.9766%; height: 25px;"><span style="font-family: arial, helvetica, sans-serif; font-size: 10pt;">GTEX</span></td>
    <td style="width: 24.9766%; height: 25px;"><span style="font-family: arial, helvetica, sans-serif; font-size: 10pt;">RHX</span></td>
    </tr>
    </tbody>
    </table>
    <table border="1" style="border-collapse: collapse; width: 100%; height: 25px;">
    <tbody>
    <tr>
    <td style="width: 33.3011%; text-align: center; height: 25px;"><span style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #000000;"><strong>CAPACITACION</strong></span></td>
    <td style="width: 33.3011%; text-align: center; height: 25px;"><span style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #000000;"><strong>EHS</strong></span></td>
    <td style="width: 33.3041%; text-align: center; height: 25px;"><span style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #000000;"><strong>FIRMA EMPLEADO</strong></span></td>
    </tr>
    <tr>
    <td style="width: 33.3011%; height: 25px;"><span style="font-family: arial, helvetica, sans-serif; font-size: 10pt;">CNX</span></td>
    <td style="width: 33.3011%; height: 25px;"><span style="font-family: arial, helvetica, sans-serif; font-size: 10pt;">EHSX</span></td>
    <td style="width: 33.3041%; height: 25px;"><span style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"><img src=" & JSON(PenInput1.Image, JSONFormat.IncludeBinaryData ) "></span></td>
    </tr>
    </tbody>
    </table>
  • Verified answer
    v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @Iksen 

    So you put this code directly in the Compose action?

    JSON(PenInput1.Image, JSONFormat.IncludeBinaryData )

    As this is the function in Power Apps , you need to use the function in Power App and then pass it to Power Automate.

    vyueyunmsft_0-1706598673175.png

     

     

    Best Regards,

    Yueyun Zhang

     

  • Iksen Profile Picture
    27 on at

    Is working!

    @v-yueyun-msft 

     

    Thanks

     

    Last question is there a way to style the size of the picture?

    like type width or height?

  • Iksen Profile Picture
    27 on at

    I used 

    ("<img src=" & JSON(PenInput1.Image, JSONFormat.IgnoreBinaryData ) & " width='200' height='150'>")

    to add width and height

     

    @v-yueyun-msft 

    Acepting as solution 

    Thanks a lot! 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 224 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 126

Last 30 days Overall leaderboard