Articles in this section
Category / Section

How to display PDF document in FlipView/Single Page view mode using SfPdfViewerControl in WinRT Platform?

1 min read

How to display PDF document in FlipView/Single Page view mode using SfPdfViewerControl in WinRT Platform?

We do not support Single Page View mode currently in SfPdfViewerControl. However as a workaround we can achieve this by using FlipView in WinRT platform by extracting the Images from PDF Document and add the same in FlipView Control.

Code Snippet:

pdfViewer.Visibility = Windows.UI.Xaml.Visibility.Collapsed;

onePageFlipView.Visibility = Windows.UI.Xaml.Visibility.Visible;

pdfViewer.Height = 0;

onePageFlipView.Items.Clear();

Image[] pages = pdfViewer.GetPages(0, ldoc.PageCount - 1);

for (int i = 0; i < pages.Length; i++)

onePageFlipView.Items.Add(pages[i]);

Please find the sample attached in the below link:

 http://www.syncfusion.com/downloads/support/directtrac/132250/PDFViewerWintRT_20131018973348.zip

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied