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

Wed Mar 15, 2023 8:03 pm

Not sure what I am doing wrong but when I try to display a PDF with more than 5 pages, the first 5 pages work correctly but page 6-xx are always blank. I have tried many PDF's and all stop at page 5, everything else is blank. When I view the PDF is Adobe, I see all pages.

I am using Spire.PDFViewer 7.7.10
and Spire.PDF 8.7.2.1040

using it with c#
load code looks like
this.PdfDocumentViewer1.CacheInterval = 1000;
this.PdfDocumentViewer1.CacheTime = 12000;
this.PdfDocumentViewer1.CacheNumberImage = 1000;
this.PdfDocumentViewer1.ScrollInterval = 300;
this.PdfDocumentViewer1.ZoomFactor = 1f;
PdfDocument doc = new PdfDocument();
string val3 = @"c:\InetPub\Test.pdf";
doc.LoadFromFile(val3);

the viewer is
<cc1:PdfDocumentViewer ID="PdfDocumentViewer1" runat="server" Width="100%">
</cc1:PdfDocumentViewer>

colinmhart
 
Posts: 15
Joined: Thu Aug 18, 2022 7:19 pm

Thu Mar 16, 2023 8:25 am

Hi,

Thanks for your inquiry.
Please use the following code to load your pdf document.
Code: Select all
this.PdfDocumentViewer1.LoadFromFile(val3)

If the issue still exists, please provide us with your project to help us do an accurate investigation, you can send it to us via email (support@e-iceblue.com) or attach them here. Thanks for you corporation.

Sincerely,
Triste
E-iceblue support team
User avatar

Triste.Dai
 
Posts: 1000
Joined: Tue Nov 15, 2022 3:59 am

Return to Spire.PDFViewer