Skip to content

Latest commit

 

History

History
85 lines (44 loc) · 4.51 KB

getting-started-with-canvas.md

File metadata and controls

85 lines (44 loc) · 4.51 KB

Getting Started with Syncfusion PowerApps PdfViewer Code Component in Canvas Application

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.

Prerequisites

Create a PowerApps Canvas application

Initiate the creation of a canvas application by following these steps:

  1. If you're creating the canvas application for the first time in your PowerApps environment, ensure to enable the PowerApps component framework for canvas apps support. Otherwise, proceed to the next step.

    For detailed instructions, consult the FAQ.

  2. Go to the PowerApps portal, access the Apps tab from the left navigation pane, and click on Start with a page design.

Canvas App Create

  1. Choose the Blank canvas option and specify either tablet or phone resolution.

Canvas App Create 1

  1. The PowerApps blank canvas application will be generated as like below.

Canvas App Created

Note

For additional guidance, refer to the Create an blank canvas app in PowerApps documentation.

Import Syncfusion PowerApps PdfViewer code component into canvas application

Integrating the Syncfusion PowerApps PdfViewer code component into the blank canvas application involves the following steps:

  1. Within the created blank canvas application, navigate to Insert -> Get more components icon below search bar.

Canvas Import 1

  1. Switch to the code tab and import the published solution package component SfPdfViewer.

Canvas Import 2

  1. Once imported, you'll find the Syncfusion PowerApps PdfViewer code component in the code components section.

Canvas Import 3

Add Syncfusion PowerApps PdfViewer code component into canvas application

Enhance your canvas application by adding the Syncfusion PowerApps PdfViewer code component using the following steps:

  1. From the Insert tab on left pane, drag and drop the SfPdfViewer component located in the code components section into your application layout.

Canvas Import Data For PdfViewer

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

  1. Once the document is loaded, the output of the PdfViewer code component will displayed.

Canvas Output

Preview the Syncfusion PowerApps PdfViewer application

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.

Canvas Preview

Publish the Syncfusion PowerApps PdfViewer application

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.

Canvas Preview

See also