How to display PDF document in FlipView/Single Page view mode using SfPdfViewerControl in WinRT Platform?
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