I can't figure out how to make the PDFviewer take up more of the page

How can i size the PDFviewer to take up the entire Blazor Page? No matter what size options I use it will only take about 600 pixels high and 800 wide?

do you have an example of scaling it larger or even full screen with the window size in Blazor?


1 Reply

DM Dhivyabharathi Mohan Syncfusion Team December 8, 2021 01:06 PM UTC

Hi John, 
  
Thank you for contacting Syncfusion support. 
   
You can change the width and height of the PDF Viewer using the width and height property. We have shared the sample and code snippet to set the width and height for the PDF Viewer component. 
   
   
Code-snippet: 
  
<SfPdfViewerServer DocumentPath="@DocumentPath" Height="980px" Width="2000px"></SfPdfViewerServer> 
  
Kindly try this and revert us, if you have any concerns. 
  
Regards, 
Dhivya. 


Loader.
Up arrow icon