Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

HTML to PDF blank box with red cross

(0) ShareShare
ReportReport
Posted on by 395

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

    Thanks Sik, thats what i was looking for 😉

  • Verified answer
    v-siky-msft Profile Picture
    v-siky-msft 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

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,445

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,741

Leaderboard