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. Image for the cookie policy date
close icon

PDF Viewer displays only white pages

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;
            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);

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.


2 Replies

SM Suresh M Syncfusion Team May 29, 2013 05:40 AM UTC

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.




SM Suresh M Syncfusion Team May 29, 2013 05:42 AM UTC

Hi Oh,


Sorry for the inconvenience caused.


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






Live Chat Icon For mobile
Up arrow icon