New Experimental PDF function in PowerApp

PDF function in PowerApp banner

Share This Post

Share on facebook
Share on linkedin
Share on twitter
Share on email

PDFWhether you want to link your data to Dataverse, SharePoint, or one of the other 300+ connectors, Microsoft Power Apps are an excellent way to do so. The same developers must, however, take into account situations where users need to view, print, and share PDFs. Now you may be wondering; can PowerApps create a pdf? Yes, it can. 

Users can now transfer screen content in a variety of settings with the new experimental PDF function in PowerApp. PDFs can be set up to display the entire contents of the screen or just a portion of it, and they can expand to display tabular data that spans more than one page. You may now create a PDF of a screen’s contents using Power Automate to send via email or store in a Power Automate flow.

However, there is still a lot to know before you get the answer to; what are the functions in PowerApps. Let’s see what you need to understand before using the function. 

The PDF function syntax

The PDF function syntax includes Screen or control name, Size, DPI, Margin, Orientation, and ExpandContainers.

This screen control has the content that will be used to create the PDF. Vertical Gallery, Vertical Layout Container, Horizontal Layout Container, and Screen have supported controls.

Controls the size of the PDF that is produced. Depending on the user’s location, Letter or A4 is the default setting for the US, Canada, and other locales.

Controls the resulting PDF’s scale and resolution. The value must be bigger than 0. A higher effective DPI may result from the content that fills more space than is permitted by the designated margins. 96 is the default value.

A string describing how much room should be left between the created PDF’s content and the outside edge. The resulting PDF’s top, right, bottom, and left margins can each support a distinct value. The following units of measurement are supported for this value: in, cm, mm, pt, and px. For all margins, the default setting is 0.5 inches (12.7 mm).

Determines whether the output PDF is landscape (horizontal) or portrait (vertical). The standard setting is portrait (vertical).

Controls whether specific containers containing content larger than the space allotted for them will expand to show the entire generated PDF. PowerApps screens, horizontal and vertical containers, vertical fixed-height galleries (not stacked), forms, and scrollable canvas controls are among the affected controls. False is the default setting.

Work with the generated PDF

To find your way around the PDF viewer, you have many methods to follow.

However, one of the most used methods is below:

How do I use pdf viewer in Power App?

1- Select the button you made in the preceding stages in the canvas app you created, or add a new button.

2- Enter the following formula in the button’s OnSelect property: Set(myPDF, PDF(SubmitInspectionScreen)); 

PDF Viewer in PowerApp

3- Choose Insert > PDF viewer from the command bar (experimental).

4- Select the Document property from the list of properties, then type myPDF into the formula bar.

myPDF

5- Select Save and publish in the upper-right corner.

6- Try out the app.

7- Choose the additional button. When the button clicks, a PDF is created, saved in the variable, and shown in the PDF viewer control.

How do I print a pdf from PowerApps?

Any screen can be chosen and fit onto a page to be sent to a printer for printing or to be saved as a PDF file using the print feature.

PDF Feature

How to enable the PDF function?

You only need to locate the PDF function feature in the Experimental tab and turn it on to activate this new experimental functionality.

  1. Open a new Power app or change an existing one to enable the PDF feature.
  2. Select Settings from the command bar.
  3. Choose Future features.
  4. Set the toggle for the PDF feature to On under the Experimental tab.

Bottom Line

So, here is everything you need to know about creating pdf documents. If you are new to this experimental feature, you can always count on the brief guide by DFSM. On the other hand, Microsoft has also shared its detailed documentation that is always available online.

customer support

Subscribe To Our Newsletter

Get updates and learn from the best

More To Explore

Microsoft Teams Premium: Is it Worth it?

Meetings aren’t all the same, and every business has never had a meeting of the same size. So, the requirements demand more, and basic Microsoft Teams may not be sufficient

Talk with an Expert Today

You consent to the processing of your
personal data by clicking on the button.
Terms of use.

Talk with an Expert Today

You consent to the processing of your
personal data by clicking on the button.
Terms of use.

Download Template

You consent to the processing of your
personal data by clicking on the button.
Terms of use.

Download Template

You consent to the processing of your
personal data by clicking on the button.
Terms of use.

Download Template

You consent to the processing of your
personal data by clicking on the button.
Terms of use.

Download Template

You consent to the processing of your
personal data by clicking on the button.
Terms of use.

Download Template

You consent to the processing of your
personal data by clicking on the button.
Terms of use.

Download Template

You consent to the processing of your
personal data by clicking on the button.
Terms of use.

Download Template

You consent to the processing of your
personal data by clicking on the button.
Terms of use.

Download Template

You consent to the processing of your
personal data by clicking on the button.
Terms of use.

Download Template

You consent to the processing of your
personal data by clicking on the button.
Terms of use.