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 Funtction (experim...
Power Apps
Answered

PDF Funtction (experimental) not creating entire HTML control inside of container

(0) ShareShare
ReportReport
Posted on by 121

Hi all,

this is starting to drive me nuts.

 

I'm looking to give users the ability to create PDF:s from a table that changes based on the date they have chosen.

 

Now the issue here is that the amount of text in fields can change and as far as I know I can't use a flexible height gallery for the PDF function.

 

Now I have created an HTML table instead.

I have put that HTML control inside of an vertical container.

 

However, upon creating the PDF inside of powerapps it only renders the part of the HTML control that is shown on the screen.

So it always gets cut of in the middle.

I have set Expand containers to true

Set(
 varMyPDF,
 PDF(
 Container11_10, {ExpandContainers: true}
 )
)

 

And also tested different paper sizes. However the result is always the same, it gets cut off down the middle and not the entire table will show up in the PDF.

 

Am I missing a setting somewhere?

Or is the HTML control simply not properly supported with the PDF Function?

Categories:
I have the same question (0)
  • Verified answer
    drawser Profile Picture
    121 on at

    Did some more fiddling around and it turns out I have to set the Auto Height for the HTML control to true.

    Not the flexible height but Auto Height

    Now it works.

  • TxTechnician Profile Picture
    98 on at

    Hey, I've got a similar problem to this.  And did your exact solution to solve the problem (set auto-height on the HTML Control).

     

    But, I have this one long HTML text control.  It measures about 7,000 pixels in height.  And the container is cutting off the bottom 500 pixels or so.  Like in the plain view withing the app.  Which obviously causes the PDF to also be missing that 500 pixels. 

     

    Have you had this happen?

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard