Hi Vadim,
Thank you
for using Syncfusion products.
We are not
able to reproduce the issue “ArgumentNull exception is thrown when loading PDF
stream to the viewer”. Please find the sample available in the link below with
which we tried to reproduce the issue. Please modify this sample or provide us
a new sample with which the issue could be reproduced, this would be more
helpful for us to further investigate on this.
Sample: http://www.syncfusion.com/downloads/support/directtrac/123816/PDFViewerWintRT_20132129551588.zip
Please let
us know if you need any further assistance.
Thanks,
Suresh
Hello Suresh,
I was helping my colleague this afternoon.
There is clearly a bug in the PDF Viewer. I was not able to access your sample project, because it has some protection when I click on the file. However, Vadim told me he was not able to reproduce it previously.
Anyway, our code is very simple:
var pdfLoadedDocument = new PdfLoadedDocument(data);
pdfViewer.LoadDocument(pdfLoadedDocument);
This code generates a 100% crash on our side.
I dig around the pdfViewer methods and I found the undocumented method pdfLoadedDocument.OpenAsync. I tried this method and it starts to work well.
1- Could you take a look on your source code to tell us what is the difference between passing the buffer to the constructor or the OpenAsync method please?
2- For PDF bigger than 4 MB, the performance is not good. It would be nice to display a progress ring when the PDF is loading. The problem is there is no event to tell us when the PDF is done loading. Am I wrong? Can you add an event?
Thank you
Sébastien
Hello Suresh,
I was helping my colleague this afternoon.
There is clearly a bug in the PDF Viewer. I was not able to access your sample project, because it has some protection when I click on the file. However, Vadim told me he was not able to reproduce it previously.
Anyway, our code is very simple:
var pdfLoadedDocument = new PdfLoadedDocument(data);
pdfViewer.LoadDocument(pdfLoadedDocument);This code generates a 100% crash on our side.
I dig around the pdfViewer methods and I found the undocumented method pdfLoadedDocument.OpenAsync. I tried this method and it starts to work well.
1- Could you take a look on your source code to tell us what is the difference between passing the buffer to the constructor or the OpenAsync method please?
2- For PDF bigger than 4 MB, the performance is not good. It would be nice to display a progress ring when the PDF is loading. The problem is there is no event to tell us when the PDF is done loading. Am I wrong? Can you add an event?
Thank you
Sébastien
Hi Sébastien,
Thank you
for your interest in Syncfusion products.
We are not
able to reproduce the issue mentioned in the incident. Please find the sample
available in the link below with which we tried to reproduce the issue. Please
modify this sample or provide us a new sample with which this issue could be
reproduced. This will help us to further investigate on thi.
Sample: http://www.syncfusion.com/downloads/support/directtrac/124249/PDFViewerWintRT_2013-567023171.zip
Please let
us know if you need any further assistance.
Thanks,
Suresh
Hello,
I asked 2 questions and you replied something unrevelant.
Could you please answers my two questions?
Thank you
Sebastien
Hi Sébastien,
We apologize
for the inconvenience.
1- Could you take a look on your source code to tell us what is the
difference between passing the buffer to the constructor or the OpenAsync
method please? |
Passing the buffer to the constructor and the OpenAsync method does
the same process, whereas OpenAsync is asynchronous which helps the UI to be
responsive. The documentation of loading a PDF document is available in the link http://help.syncfusion.com/UG/winrt/default.htm#!Documents/loaddocument.htm |
2- For PDF bigger than 4 MB, the
performance is not good. It would be nice to display a progress ring when the
PDF is loading. The problem is there is no event to tell us when the PDF is
done loading. Am I wrong? Can you add an event? |
For displaying larger PDF documents in the PDF viewer, we initially
display a blurred image of the page of the PDF document, then followed by
displaying the actual page. We have logged a feature request report for
adding an event to get the status of the page render process. Please follow
up the implementation of the feature with the Direct Trac incident http://www.syncfusion.com/support/directtrac/incidents/124313 |
Regarding
the issue mentioned “Loading the buffer into
PDF document and loading it into Viewer crashes”, we are not able to
reproduce the issue mentioned in the incident. Please find the sample available
in the link below with which we tried to reproduce the issue. Please modify
this sample or provide us a new sample with which this issue could be
reproduced. This will help us to further investigate on this.
Sample: http://www.syncfusion.com/downloads/support/directtrac/124249/PDFViewerWintRT_2013-567023171.zip
Please let
us know if you need any further assistance.
Thanks,
Suresh
Hi,
In a little sample, I'm not able to reproduce the crash. The story must be different in a real world application.
It is a 100% crash repro when I'm using the constructor.
I would be able to help if I get the .pdb or the Syncfusion code to show you exactly where it crash. We already provided a release output.
Could it be possible to get the pdb or code? I'm also available to a remote session using Team Viewer if you want to see the crash in real-time.
Thank You
Sébastien
Hi,
In a little sample, I'm not able to reproduce the crash. The story must be different in a real world application.
It is a 100% crash repro when I'm using the constructor.
I would be able to help if I get the .pdb or the Syncfusion code to show you exactly where it crash. We already provided a release output.
Could it be possible to get the pdb or code? I'm also available to a remote session using Team Viewer if you want to see the crash in real-time.
Thank You
Sébastien
Hi Sébastien ,
Thank you
for your response,
We provide
the source code only to our customers who has the source code license. Please
follow up with the Direct Trac incident #124313, for organizing a web meeting
to illustrate this issue.
Please let
us know if you need any further assistance.
Thanks,
Suresh
1) if i load the document into a byte array first, create a PdfLoadedDocument with that byte array, and then load the PdfLoadedDocument into the viewer” |
We are glad to know that your requirement “Loading the PDF document stream into byte[] and then load the PdfLoadedDocument into the viewer” has been achieved using PDF viewer control |
2) i can get it to work if i use await + the async as described above, but that seems to be causing other problems that i'll try and work through, but it seems like this error is still present.update: it only seems to happen when i do pdfViewer.LoadDocument(fileStream) where fileStream is a well, file.OpenAsync stream |
We are not able to reproduce the issue, “Exception is thrown when loading PDF stream to the viewer”. We have attached the sample that we tried to reproduce the issue at our end. Please find the sample from the below link. Kindly modify the attached sample or provide us a new sample with which the issue could be reproduced. It would be more helpful for us to investigate further on your requirement and provide you better solution. Sample link: http://www.syncfusion.com/downloads/support/forum/116169/ze/PdfViewerDemo168850455.zip |