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 / PDF Function generatin...
Power Apps
Unanswered

PDF Function generating weird pdf size

(0) ShareShare
ReportReport
Posted on by 237

Hi I am using the experimental PDF function. I have used a timer and the timer has the formula in the ontimerstart property. The whole thing was working correctly until now. The pdf get's generated but all of the controls are enlarged and are missing the rest of the controls towards the bottom of the page. Any ideas why this randomly start happening? 

 

NPatel12498_0-1707162756777.png

 

Formula in the timer ontimerstart property:

 

Set(
 VarPDF,
 PDF(
 Container4, 
 {
 ExpandContainers: true,
 Orientation: PaperOrientation.Portrait
 //Size: PaperSize.A4
 }
 )
);
Set(
 varFileName,
 Concatenate(Text(varRecord.ID),
 ".pdf")
);
create_mealschecklistpdf.Run(
 {
 file: {
 name: varFileName,
 contentBytes: VarPDF
 }
 }
);

 

 

Categories:
I have the same question (0)
  • sgtsnacks64 Profile Picture
    322 Super User 2024 Season 1 on at

    Hi @NPatel12498 ,

     

    You might want to try adding the DPI property to the PDF function and increase this to make the elements smaller on page. Remember this is an experimental feature so changes may occur that could break things!

     

    Default is 96, maybe increase to 128 and see what happens

     

    Also noticed the paper size is commented out, but unsure if this is intended or not 🙂

    Content on Microsoft Learn 

  • NP-18101421-0 Profile Picture
    237 on at

    Hi,

     

    Even after I added a DPI it is still not working 😞 

    It used to work all this time. It is still working for my co worker with the same exact code as well. But mine seems to have broke.

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 490

#2
WarrenBelz Profile Picture

WarrenBelz 427 Most Valuable Professional

#3
Vish WR Profile Picture

Vish WR 381

Last 30 days Overall leaderboard