BoldDesk®Customer service software offering ticketing, live chat, and omnichannel support, starting at $49/mo. for 10 agents. Try it for free.
Hello!
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();
browseForm.ShowDialog();
browseForm.pdfViewer.Load(filePath);
browseForm.pdfViewer.Focus();
}
Designer Code:
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.
Best regards
Klaudiusz
Hi Klaudiusz,
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.
Sample: SampleWF.zip
Please let us know if you have any concerns.
Regards,
Meikandan
Hi,
I attach 2 projects (for 10.304 and for 11.3040 syncfusion dll's).
Best regards,
Klaudiusz
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. Attachment: Capture.zip |
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.
Regards,
Meikandan
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.
https://ej2.syncfusion.com/aspnetmvc/PdfViewer/Default#/material
Please find the attachment(issue screenshot and sample file)
Regards,
Manimaran
Hi Manimaran,
We are unable to reproduce the reported issue locally in both versions v19.4.0.52 and the latest v20.1.0.47. 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.
Video: https://www.syncfusion.com/downloads/support/directtrac/general/ze/ScreenCapture106481015
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.
Regards,
Shamini
Hi Shamini,
i have used you shared sample project, I am facing render issue few more samples
Hi Manimaran,
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.
Regards,
Visvesvar K V
Hi Team,
May I know the status for above request.
Regards,
Manimaran
Hi Manimaran,
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
<div style="height:500px;width:100%;"> @Html.EJS().PdfViewer("pdfviewer").ServiceUrl(VirtualPathUtility.ToAbsolute("~/PdfViewer/")).DocumentPath("PDF Succinctly.pdf").Render() </div>
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.
<jsonSerialization maxJsonLength="2147483647"></jsonSerialization>
5) In web.config file the “max allowed content length” has been changed.
<requestLimits maxAllowedContentLength="1073741824" maxQueryString="65535">
|
Sample - https://www.syncfusion.com/downloads/support/directtrac/general/ze/PdfViewer_MVC-1433936416.zip
If you still need any further assistance kindly revert to us. We are here to assist you.
Regards,
Visvesvar K V