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