Hi,
Thanks for your inquiry.
You can increase PdfViewer's width through this.PdfViewer1.Width.
If you don't set the size of pdfviewer, its size will depend on the size of pdf document.
Best Regards,
Amy
E-iceblue support team
I proved various sizes (percentage and pixels), and the design of pdfViewer is not responsive. Is it possible change this?
<div style=" width:900px; height :700px; border:2px solid red" >
<cc1:PdfViewer ID="PdfViewer1" runat="server">
</cc1:PdfViewer>
<script type="text/javascript">
var timeEvent = null;
function func()
{
if (pdfviewer1 != null) {
pdfviewer1.AdaptiveSize(900, 700);
window.clearInterval(timeEvent);
}
}
timeEvent = window.setInterval("func()", 50);
</script>
</div>
<input type="button" id="btnFirst" value="first" onclick="pdfdocumentviewer1.FirstPage()" />
<input type="button" id="btnPrevious" value="Previous"
onclick="pdfdocumentviewer1.PreviousPage()" />
<input type="text" id="PdfDocumentViewer1_PdfViewerCurrentPage" value="1" style="width: 50px;" />
<span id="PdfDocumentViewer1_PdfViwerCountPage"></span>
<input type="button" id="btnNext" value="Next" onclick="pdfdocumentviewer1.NextPage()" />
<input type="button" id="btnLast" value="Last" onclick="pdfdocumentviewer1.LastPage()" />
<input type="button" id="btnAdaptiveWidth" value="AdaptiveWidth" onclick="PdfDocumentViewer1.AdaptiveWidth()" />
<cc1:PdfDocumentViewer ID="PdfDocumentViewer1" runat="server" width="800px" Height="800px">
</cc1:PdfDocumentViewer>