Skip to main content
Community site session details

Community site session details

Session Id : BWmQ7txLyiaD0fsnyfWkri
Power Apps - Building Power Apps
Answered

HTML to PDF blank box with red cross

Like (0) ShareShare
ReportReport
Posted on 2 Nov 2020 23:51:05 by 405

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:
  • Matt383 Profile Picture
    405 on 04 Nov 2020 at 01:19:59
    Re: HTML to PDF blank box with red cross

    Thanks Sik, thats what i was looking for 😉

  • Verified answer
    v-siky-msft Profile Picture
    on 03 Nov 2020 at 07:59:26
    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

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete