Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 809 Bytes

File metadata and controls

10 lines (7 loc) · 809 Bytes

How to resize the SfPdfViewer with respect to its parent element

This example shows how to resize the SfPdfViewer within its container, at the run time. Here, the SfPdfViewer is rendered inside a Splitter component. When you resize the Splitter, the SfPdfViewer will stretch its size accordingly by using the UpdateViewerContainerAsync() method.

Documentation: https://help.syncfusion.com/document-processing/pdf/pdf-viewer/blazor/how-to/stretch-the-sfpdfviewer-size-to-its-container

Project pre-requisites

To run this application, you need Visual Studio 2019 or later versions.

Deploying and running the sample

To debug while running the application, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging.