Dynamically resize the viewer control

Whats the proper way to dynamically resize the pdf viewer control (user resizes window)



3 Replies

MS Mohan Selvaraj Syncfusion Team December 1, 2017 06:42 AM UTC

Hi Michael, 

Thank you for using Syncfusion products. 

We have provided the responsiveness supports for our PDF viewer control. If we resize the browser window the PDF viewer control will resize according to the width of the browser window. We can enable the responsiveness property of PDF viewer control by setting isResponsive to true. Kindly refer the  below code snippet. 

<div id="viewer"></div> 
<script type="text/javascript"> 
        $(function () { 
            $("#viewer").ejPdfViewer({ serviceUrl: '../api/PdfViewer', isResponsive: true }); 
        }); 
</script> 

Note: The default value for the isResponsive is true

If the provided details does not match your requirement. Can you please provide more details about the query. So that would be helpful for us to analysis more and assist you better. 

Regards, 
Mohan S 



MS Michael Salzlechner replied to Mohan Selvaraj December 1, 2017 02:31 PM UTC

Hi Michael, 

Thank you for using Syncfusion products. 

We have provided the responsiveness supports for our PDF viewer control. If we resize the browser window the PDF viewer control will resize according to the width of the browser window. We can enable the responsiveness property of PDF viewer control by setting isResponsive to true. Kindly refer the  below code snippet. 

<div id="viewer"></div> 
<script type="text/javascript"> 
        $(function () { 
            $("#viewer").ejPdfViewer({ serviceUrl: '../api/PdfViewer', isResponsive: true }); 
        }); 
</script> 

Note: The default value for the isResponsive is true

If the provided details does not match your requirement. Can you please provide more details about the query. So that would be helpful for us to analysis more and assist you better. 

Regards, 
Mohan S 


need the height to resize to the window as well



MS Mohan Selvaraj Syncfusion Team December 6, 2017 12:59 PM UTC

Hi Michael,  
 
A support incident to track the status of the reported query has been created under your account. Please log on to our support website to check for further updates.

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents 
 
 
Regards, 
Mohan S 


Loader.
Up arrow icon