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 / HTML to PDF blank box ...
Power Apps
Answered

HTML to PDF blank box with red cross

(0) ShareShare
ReportReport
Posted on by 407

Hi,

 

I have some html on a submit button, with a flow that converts to pdf.  The only problem is, if no signature is entered, the signature field in the pdf shows up as an empty box with a red cross in the top corner. I was able to work around this with images by changing the sample image to a white picture i made in photoshop, however i cant find anything in Peninput. Is there maybe an if statement that could be used in the html or another work around.  Any assistance would be much appreciated.

 

</tbody>
</table>
<p><img src="&JSON(CollectGallery.Selected.Signature1, JSONFormat.IgnoreBinaryData)&" type='image/png' style='width:90px'></p>
<table style='height: 25px; float: left;' width='580'>
<tbody>
<tr>
<td style='width: 580px;'><strong>Work Details:</strong>
</td>
</tr>

 

KR's,
Matt383

Categories:
I have the same question (0)
  • Verified answer
    v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @Matt383 ,

    Yes, try to use if statement as follows, if the CollectGallery.Selected.Signature1 is blank, output a white picture .

     

    <p><img src="&
    If(IsBlank(CollectGallery.Selected.Signature1), 'https://www.immr.org/images/Backgrounds/bg_image_726x510.png' ,JSON(CollectGallery.Selected.Signature1, JSONFormat.IgnoreBinaryData))
    &" type='image/png' style='width:90px'></p>

     

    Hope this helps.

    Sik

  • Matt383 Profile Picture
    407 on at

    Thanks Sik, thats what i was looking for 😉

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 529 Most Valuable Professional

#2
Haque Profile Picture

Haque 230

#3
Kalathiya Profile Picture

Kalathiya 217 Super User 2026 Season 1

Last 30 days Overall leaderboard