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() With DPI full sc...
Power Apps
Unanswered

PDF() With DPI full screen

(0) ShareShare
ReportReport
Posted on by 63

Hello,

 

    I am using the PDF() function to create full screens PDF reports. However, the currently using the default DIP of 96 [1] results in blurry images and fuzzy outlines of around text. When I increase the DPI to 300 it shrinks the output instead of increasing the quality. What would be the fastest fix for increasing the DPI while at the same time not having to rearrange all the elements on the page. Below is the PDF command I am using.

 

 

 

Set(
 var_PDF_Report,
 PDF(
 CON_Report_Job_Summary,
 {
 Size: "Letter",
 Orientation: "Landscape",
 ExpandContainers: true,
 DPI: 300
 }
 )
);

 

 

-gizmobrat

 

[1] TashasEv, and Et. El. "PDF function(experimental)". Microsoft. [Online]. PDF function (experimental) - Power Platform | Microsoft Learn [Accessed December 14, 2023].

 

Categories:
I have the same question (0)
  • Prabhakar_S Profile Picture
    735 Moderator on at

    Hi @gizmobrat ,

     

    Try Adjust Scaling:

     

    Instead of increasing DPI, you can try adjusting the 'Scale' property. It allows you to scale the content in the report without changing the physical size. Experiment with different scale values to find the right balance between quality and size.

     

    Set(
    var_PDF_Report,
    PDF(
    CON_Report_Job_Summary,
    {
    Size: "Letter",
    Orientation: "Landscape",
    ExpandContainers: true,
    Scale: 2 // Adjust the scale value
    }
    )
    );

     

    Thanks!!!

     

    Please consider marking my response as the accepted solution if it successfully resolves your concern. If you found the information beneficial in other aspects, kindly express your appreciation by giving it a thumbs-up.

  • gizmobrat Profile Picture
    63 on at

    I am getting an error stating the option "Scale" not recognized.

  • Prabhakar_S Profile Picture
    735 Moderator on at

    Consider giving this a try,

     

    Use an external tool, such as Adobe Acrobat or ImageMagick, to increase the DPI of the PDF file after it has been generated by the 'PDF()' function. You can use the 'DPI' property of the 'PDF()' function to set the DPI to a higher value, such as 300, but this may result in a smaller output instead of increasing the quality, as you have mentioned.

     

    If you want to increase the DPI without rearranging all the elements on the page, you can try using an external tool to increase the DPI of the PDF file and then use the 'Scale' property of the 'PDF()' function to scale the PDF back to its original size. For example, if you increase the DPI from 96 to 300, you can set the 'Scale' property to 0.32 to scale the PDF back to its original size.

     

    Set(
    var_PDF_Report,
    PDF(
    CON_Report_Job_Summary,
    {
    Size: "Letter",
    Orientation: "Landscape",
    ExpandContainers: true,
    DPI: 96
    }
    )
    );

    // Use an external tool to increase the DPI of the PDF file to 300
    // Set the Scale property to 0.32 to scale the PDF back to its original size
    Set(
    var_High_Quality_PDF_Report,
    PDF(
    var_PDF_Report,
    {
    Scale: 0.32,
    DPI: 300
    }
    )
    );

     

    By following these steps, you may increase the DPI of the PDF generated by the 'PDF()' function in PowerApps without having to rearrange all the elements on the page.

     

    Thanks!!!

     

    Please consider marking my response as the accepted solution if it successfully resolves your concern. If you found the information beneficial in other aspects, kindly express your appreciation by giving it a thumbs-up.

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