When i try to open pdf document by pdfviewer toolbar the document is blank.
When i open the document in acrobat everything is ok!
Code with loading document:
public static void PreviewFile(string filePath)
var browseForm = new BrowseForm();
this.pdfViewer = new PdfViewerControl();
this.pdfViewer.Dock = DockStyle.Fill;
this.pdfViewer.Location = new System.Drawing.Point(0, 0);
this.pdfViewer.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right | AnchorStyles.Bottom | AnchorStyles.Left)));
this.pdfViewer.AutoSize = true;
this.pdfViewer.Name = "pdfViewer";
this.pdfViewer.Text = "PDF Viewer";
this.pdfViewer.ShowToolBar = true;
this.pdfViewer.Size = new System.Drawing.Size(688, 623);
this.pdfViewer.TabIndex = 0;
this.pdfViewer.Visible = true;
We use syncfusion 10.3.0.43 (we can't use newer till next month). In project we add Syncfusion.pdf.base and pdfviwer.windows in .net 4.0 (10.304.0.43).
Acrobat renders this pdf properly.
I attached pdf's on which we test.
Thank you for your updates.
We have checked the code snippet and pdf documents and we are unable to reproduce the scenario with “The provided pdf documents are displayed blank while opening the documents through open icon in PdfViewer toolbar”. We have attached the sample we have tried in the below link, Could you please modify the sample and update us back. So that we can proceed further in this incident.
Please let us know if you have any concerns.
I attach 2 projects (for 10.304 and for 11.3040 syncfusion dll's).
Hi Klaudiusz ,
Please find the details as below.
10.304 - application renders only blank pages. The same behavior is on your file: SampleWF_10.304.0.43\Data\Barcode.pdf
We are unable to reproduce the issue and we have attached the screenshot for your reference.
11.3040 - Files are loaded but there are some issues with rendering. Look at comparision.png file from attachment.
We are able to reproduce the issue as in your screenshot in “Nokia_E5-00_UG_pl.pdf” and we suspect this to be a defect.
Could you please report this issue through Direct Trac Developer Support System (https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents because you can take the advantage of the expertise of a dedicated support engineer and a guaranteed response time and we hope you will take advantage of this system as well. If you have already reported, please ignore this.
Please let us know if you have any other questions.
Hi SF Team,
I am facing the exact problem, When i try to open pdf document by pdfviewer toolbar the document is blank. currently i am using 19.4.052 version. i have tried your demo site also please find below link. i have tested 10 files 2 files are loaded full blank page could you please check and confirm.
Please find the attachment(issue screenshot and sample file)
We are unable to reproduce the reported issue locally in both versions v18.104.22.168 and the latest v22.214.171.124. We suspect that there might be any delay or network issue while using the online web service link.
Kindly look into the video screenshot and the sample we used to check the issue at our end can be downloaded from the following link.
Please try this sample and let us know if the issue resolves. Or share a modified sample to replicate the issue on our end for further analysis.
i have used you shared sample project, I am facing render issue few more samples
We were able to reproduce the reported issue “PDF not loading and throws web service not listening error” and suspect this to be a defect. We will analyze further on this and update you with more details on September 12, 2022.
Visvesvar K V
May I know the status for above request.
Thank you for your patience.
The PDF file that you have provided is more than 12 MB. We have changed the configuration in the sample, to load the PDF file as nearer to that size.
This sample will load the PDF without any issues.
Changes made in the sample are provided below
1) In Index. cs HTML file We have changed the service URL and API URL is given. We have referred to a separate API controller in the name pdfViewerTestController.cs
2) In App_start folder webapiconfig.cs file is attached.
3)In web.config file the “max request length” has been changed.
<httpRuntime targetFramework="4.6" maxRequestLength="2073741824" executionTimeout="3600" />
4) )In web.config file the “max json length” has been changed.
5) In web.config file the “max allowed content length” has been changed.
<requestLimits maxAllowedContentLength="1073741824" maxQueryString="65535">
If you still need any further assistance kindly revert to us. We are here to assist you.
Visvesvar K V