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
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:
  • Brayden Larson Profile Picture
    Microsoft Employee on at

    Hello Matt383,

    In regards to the Pen Input control, it does not contain anything specific we could use as reference for a If statement. Instead what would need to be done is we setup a couple variables that can be modified based off user needing to interact with the Pen input.

    This would me we control the mode the Pen input is in so that when it does have to grab the image, if the pen is not expected to have an input it will fill it out with a set value, while when it is enabled it uses that instead.

     

    For Example, I used a button that when clicked does the if statement that confirms if the Pen input was in edit mode(it cant confirmed if it is filled out, so by default the input is disabled/in view mode), if it is in edit mode it returns true, else it returns false.

     

    mirroring this to your scenario, you would likely setup a variable that by default has a stock value in it(I.E. the Blank image), then when the button to submit is selected it confirms if the pen input had been enabled and if so, updates the variable to be the pen input image instead, otherwise it leaves it.
    Note: You could also just upload these and use True or false so that when the image is loaded in the submit flow button it decides which item it grabs based off that value, this would basically be a second step but this way you dont have to just fill out the variable with an image so it can be used for other statements as well.

     

    The whole idea behind this is that we are doing the If statement before we get to the Submit button with the HTML to read the image so that when it runs it already has everything it needs prepared.

     

    The biggest criteria to note is that you would need to make sure the Pen input is disabled or in Edit mode by Default, and only when the user selects an option(Say a toggle or checkbox) that it enables the Pen Input to be used.

    As long as the toggle is setup to disable it again if its toggled off it will leave only the scenario of a user toggling it and not providing input as an issue.

     

     

    have a good day,

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 234 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard