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 Platform Community / Forums / Power Apps / HTML to PDF blank box ...
Power Apps
Unanswered

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
    on at
    Re: HTML to PDF blank box with red cross

    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
    Re: HTML to PDF blank box with red cross

    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 757 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard