We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Large Pdf file can not load?

Thread ID:

Created:

Updated:

Platform:

Replies:

132615 Sep 12,2017 08:42 AM Sep 13,2017 09:08 AM Xamarin.Android 1
loading
Tags: PdfViewer
Ishwor Khanal
Asked On September 12, 2017 08:42 AM

this is what I have done
 //Initialize WebClient 
            WebClient webClient = new WebClient();

            // Initialize Uri 

            var url = BookUrl + dataItem.FileName;
            var uri = new System.Uri(url);
            //Returns the PDF document stream from the given URL 
            var stream = webClient.OpenRead(uri);

            pdfViewer.LoadDocument(stream);

in return this is what I get result

The thread 'Unknown' (0xc) has exited with code 0 (0x0).
09-12 22:37:15.293 I/art     (30351): Enter while loop.
09-12 22:37:15.542 I/art     (30351): Enter while loop.
09-12 22:37:15.637 I/art     (30351): Enter while loop.
09-12 22:37:15.820 I/art     (30351): Enter while loop.
09-12 22:37:15.919 I/art     (30351): Enter while loop.
09-12 22:37:16.093 I/art     (30351): Enter while loop.
09-12 22:37:16.169 I/art     (30351): Enter while loop.
09-12 22:37:16.279 I/art     (30351): Enter while loop.
09-12 22:37:16.402 I/art     (30351): Enter while loop.
09-12 22:37:16.536 I/art     (30351): Enter while loop.
09-12 22:37:16.649 I/art     (30351): Enter while loop.
09-12 22:37:16.808 I/art     (30351): Enter while loop.
09-12 22:37:16.891 I/art     (30351): Enter while loop.
09-12 22:37:17.030 I/art     (30351): Enter while loop.
09-12 22:37:17.149 I/art     (30351): Enter while loop.
09-12 22:37:17.296 I/art     (30351): Enter while loop.
09-12 22:37:17.490 I/art     (30351): Starting a blocking GC Explicit
09-12 22:37:17.514 I/art     (30351): Enter while loop.
09-12 22:37:17.520 I/art     (30351): Explicit concurrent mark sweep GC freed 2794(192KB) AllocSpace objects, 59(5MB) LOS objects, 32% free, 8MB/12MB, paused 459us total 28.052ms
09-12 22:37:17.609 I/Choreographer(30351): Skipped 1033 frames!  The application may be doing too much work on its main thread.
09-12 22:37:17.636 I/art     (30351): Do partial code cache collection, code=53KB, data=61KB
09-12 22:37:17.638 I/art     (30351): After code cache collection, code=52KB, data=59KB
09-12 22:37:17.638 I/art     (30351): Increasing code cache capacity to 256KB
Thread finished: <Thread Pool> #13

Online url  where the pdf file located is as which is more than 200 pages long.
http://webapischoolproject.yarshatech.com/Images/Books/19275afe-03c4-425f-8ac0-ab48c7f1198c.pdf

Tested devices android version 6 and device is Sony Ersion. 

Thank you.



Balasubramanian Sundararajan [Syncfusion]
Replied On September 13, 2017 09:08 AM

Hi Ishwor,  
 
We have created a sample with the code example provided by you to load the PDF document from the URL. The PDF document in the given URL is encrypted and we do not have support for loading the encrypted PDF document in our PDF viewer control Xamarin platform. This feature will be included in any of our upcoming release. 
 
 
If you are getting any other problem while loading the PDF document in our PDF viewer control, we request you to provide following details which will help us to investigate on the issue and assist you better. 
 
PDF document: 
Sample: 
Syncfusion Essential Studio version: 
Xamarin Android Version: 
 
Please let me know if you have any concern. 
 
Thanks, 
Balasubramanian S 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;