This article provides a step-by-step guide for setting up a PowerApps canvas application and integrating the Syncfusion PowerApps PdfViewer code component.
Power Apps canvas empowers users to design custom applications with a personalized interface, offering creative freedom. Its intuitive drag-and-drop features enable seamless integration of elements, ensuring flexibility in app development and dynamic user experiences with diverse data sources.
Initiate the creation of a canvas application by following these steps:
-
If you're creating the canvas application for the first time in your PowerApps environment, ensure to
enable the PowerApps component framework for canvas appssupport. Otherwise, proceed to the next step. -
Go to the PowerApps portal, access the
Appstab from the left navigation pane, and click onStart with a page design. -
Choose the
Blank canvasoption and specify either tablet or phone resolution. -
The PowerApps blank canvas application will be generated as like below.
Note
For additional guidance, refer to the Create an blank canvas app in PowerApps documentation.
Integrating the Syncfusion PowerApps PdfViewer code component into the blank canvas application involves the following steps:
-
Within the created blank canvas application, navigate to
Insert->Get more componentsicon below search bar. -
Switch to the
codetab and import the published solution package componentSfPdfViewer. -
Once imported, you'll find the Syncfusion PowerApps PdfViewer code component in the
code componentssection.
Enhance your canvas application by adding the Syncfusion PowerApps PdfViewer code component using the following steps:
-
From the
Inserttab on left pane, drag and drop theSfPdfViewercomponent located in thecode componentssection into your application layout. -
Initially, the PdfViewer code component will be displayed with default properties. Customize the PdfViewer code component properties in the right property pane and also via the PowerFx tab on top.
[!NOTE] By default, the PdfViewer component is rendered with a 10% zoom level. You can adjust the zoom percentage through MagnificationTool in the toolbar settings.
-
Once the document is loaded, the output of the PdfViewer code component will displayed.
To preview the Syncfusion PowerApps PdfViewer application in development environment with multiple device resolution, click the Preview button at the top right corner of the PowerApps portal.
To publish the Syncfusion PowerApps PdfViewer application in the production environment, click the Publish button at the top right corner of the PowerApps portal. Now you can share the published application with your users.
Once the application is published, you can preview it by clicking the play button of the created Canvas application from the Apps tab on the homepage.









