Articles in this section
Category / Section

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

3 mins 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 the WinRT platform by extracting the images from the PDF document and adding the same to the 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 at the link below:

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

 

Note:

Starting with v16.2.0.x, if you reference Syncfusion&reg; assemblies from a trial setup or from the NuGet feed, include a license key in your projects. Refer to the link to learn about generating and registering the Syncfusion&reg; license key in your application to use the components without a trial message.

 

Conclusion

I hope you enjoyed learning about How to display PDF document in FlipView/Single Page view mode using SfPdfViewerControl in WinRT Platform.

You can refer to our PDF feature tour page to know about its other groundbreaking feature representations. You can also explore our documentation to understand how to create and manipulate data.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion®, you can try our 30-day free trial to check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums or feedback portal. We are always happy to assist you!


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