Spire.PDFViewer is a powerful PDF Viewer component for .NET. It allows developers to load PDF document from stream, file and byte array.

Mon Feb 05, 2018 6:03 am

How can PDFViewer be able to adapt the width and height of the browser

xcyapcc
 
Posts: 3
Joined: Fri Jul 14, 2017 8:20 am

Mon Feb 05, 2018 9:05 am

Hello,

Thanks for your inquiry.
You can adapt the PDFViewer to the browser by setting a fixed width and height, such as below.
Code: Select all
<cc1:PdfViewer ID="PdfViewer1" runat="server" Width="1900px" Height="1000px"></cc1:PdfViewer>

And you also can set 100% width and height to make PDFViewer adapted to different browsers, but i am sorry to tell you that there is an issue with setting 100% width and height of PDFViewer. Our dev team is working on it. If it is fixed or there are some updates, we will let you know.

Sincerely,
Nina
E-iceblue support team
User avatar

Nina.Tang
 
Posts: 1182
Joined: Tue Sep 27, 2016 1:06 am

Fri Feb 09, 2018 12:55 am

When the issue of setting the width and height of PDFVIEWER is 100% can be solved

xcyapcc
 
Posts: 3
Joined: Fri Jul 14, 2017 8:20 am

Fri Feb 09, 2018 2:33 am

Hello,

I am afraid i can't provide a definite time at the moment. Our dev team is still working on it. If there is any good news, we will let you know. Sorry for this delay and thanks for your understanding.

Sincerely,
Nina
E-iceblue support team
User avatar

Nina.Tang
 
Posts: 1182
Joined: Tue Sep 27, 2016 1:06 am

Fri Feb 09, 2018 7:34 am

thanks

xcyapcc
 
Posts: 3
Joined: Fri Jul 14, 2017 8:20 am

Fri Apr 20, 2018 1:35 am

Hello,

Thanks for your patient waiting.
We just released the latest official Spire.Office Platinum Version:3.0 which fixed the 100% issue. Welcome to test.
Code: Select all
<cc1:PdfViewer ID="PdfViewer1" runat="server" style="height:100%;width:100%"></cc1:PdfViewer>

Sincerely,
Nina
E-iceblue support team
User avatar

Nina.Tang
 
Posts: 1182
Joined: Tue Sep 27, 2016 1:06 am

Return to Spire.PDFViewer