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.

PDF Viewer displays only white pages

Thread ID:

Created:

Updated:

Platform:

Replies:

109058 May 28,2013 04:04 AM May 29,2013 01:42 AM WPF 2
loading
Tags: PdfViewer
OH
Asked On May 28, 2013 04:04 AM

Hi, when I try to display a PDF file with Syncfusion Pdfviewer, I've just white pages displayed.

Here's my code(I also put my project in the attachment file):

var picker = new FileOpenPicker();
            picker.SuggestedStartLocation = PickerLocationId.DocumentsLibrary;
            picker.ViewMode = PickerViewMode.List;
            picker.FileTypeFilter.Add(".pdf");
            var file = await picker.PickSingleFileAsync();
            if (file == null) return;
            var stream = await file.OpenAsync(Windows.Storage.FileAccessMode.Read);
            Stream fileStream = stream.AsStreamForRead();
            byte[] buffer = new byte[fileStream.Length];
            fileStream.Read(buffer, 0, buffer.Length);
            PdfLoadedDocument ldoc = new PdfLoadedDocument(buffer);
            pdfViewer.LoadDocument(ldoc);



My code is exactly the same as in the sample code, so I really don't know what is the problem.

Could you help me please?

Thank you very much.
 


GappTestPdfViewer_9a46f2e1.zip

Suresh M [Syncfusion]
Replied On May 29, 2013 01:40 AM

Hi Oh,

 

Thank you for your interest in Syncfusion products.

 

We are able to reproduce the issue with deploying the application with the Pdf Viewer control. The issue occurs while deploying the application with culture settings other than the “en-US” culture. The fix for this issue will be available in our upcoming release. As a workaround, please do change the Default language value to en-US, to get this sample working. Please find the snapshot available below. We have also attached the sample in which the correction is made.

 

Please note, the build configuration of this project was Any CPU, and it needs to either X86 or X64 or ARM, this change is also included in the sample available in the link below.

 

Description: C:\Users\lab\Desktop\screenShot.png

 

Sample link: GappTestPdfViewer_Updated.zip

 

Please let us know if you have any concerns.

 

Thanks,

Suresh


Suresh M [Syncfusion]
Replied On May 29, 2013 01:42 AM

Hi Oh,

 

Sorry for the inconvenience caused.

 

Please find the screenshot available in the link below for the change to be made.

 

screenShot.zip

 

Thanks,

Suresh


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.

;