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 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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard