web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / PDF() of pen input con...
Power Apps
Unanswered

PDF() of pen input control generates non transparent background

(1) ShareShare
ReportReport
Posted on by 129

Hello Community,

 

I have tried to do a simple test where I have a container with an image and a pen input control on top of the image.

 

Then, I use a button to call the new PDF function and generate the PDF of the container, and it does generate the PDF ... but the pen input control that initially is transparent in the container, when converted to PDF has a black background.

 

Do you know if this is a know limitation of the PDF function ?

Or a way to make it work ?

Here is a sample screenshot of my application:

  • the button executes the following command: UpdateContext( { tmppdfcontent: PDF( Container2, {ExpandContainers: true} ) } );
  • and the pdf viewer control just points to the tmppdfcontentvariable created in the button

 

vllanso_0-1679999525745.png

Thanks, Victor.

Categories:
I have the same question (0)
  • OroskiBR01 Profile Picture
    14 on at

    I got same issue, I tried to change background color to white but Its not workig

  • vllanso Profile Picture
    129 on at

    Hello @OroskiBR01 ,

     

    thanks for testing and answering.

    I also opened a support ticket to Microsoft and was answered that:

    • the PDF Function in PowerApps is an Experimental feature and is not meant for production use and may have restricted functionality
    • but at the same time, I was informed that it was added as something to be fixed related to the PDF() function

    Regards, Victor.

  • LuisHM Profile Picture
    3 on at

    did they have any date to fix it?

  • vllanso Profile Picture
    129 on at

    Hello @LuisHM 

     

    sorry, but support just mentioned that it will be fixed in the future, just that.

  • Sigfreid Profile Picture
    2 on at

    Has anyone figured out any work arounds to resolve this? I'm experimenting with replacing the pdf input with an image control after the signature has been put in but still working on it.

  • Verified answer
    OwenS28 Profile Picture
    47 on at

    Hey @vllanso and @Sigfreid, I found a solution that works for me.

     

    So we have the PenInput1 and Image1, go ahead and add another Image2 with the same x, y, width, and height as the PenInput1. Then set the Image2 property to PenInput1.Image.

     

    Now in the OnSelect of your button that generates the pdf, before everything else add...  

    Set(varPenVisible, 1);
    Then at the very end of your OnSelect add this code...
    Set(varPenVisible, 0)
     
    That way we can set the visibility of the PenInput1 to... 
    If(varPenVisible = 1, false, true)
    And the visibility of the image we added (Image2) to...
    If(varPenVisible = 1, true, false)
     
    Now when you hit the button to generate pdf, PenInput1 will disappear, but the image you drew (Image2) will be in the exact same spot. The two images overlay each other nicely on the pdf. Here's what I got before and after.
    OwenS28_0-1717803509844.pngOwenS28_2-1717803563717.png

     

     

  • vllanso Profile Picture
    129 on at

    Thank you @OwenS28  ... ! that is brilliant !

     

    I just tested and it does work, and the resulting PDF has the overlay of both things.

     

    Thanks again.

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard