How can I help you?
UWP PDF Viewer (SfPdfViewer) Overview
23 May 20263 minutes to read
The PDF viewer for Universal Windows Platform is a native control for viewing and printing PDF documents. The control internally makes use of the Windows rendering engine (Windows.Data.Pdf) for rendering the pages of the PDF document.
In This Section
| Topic | Description |
|---|---|
| Getting Started | Install the package, configure the Application, and load your first PDF document. |
| Viewing PDF | Load documents from streams, local storage, URLs, pdfLoadedDocument files. |
| Magnification | Enables zooming (manual and programmatic), retrieving zoom levels, switching between view modes (FitWidth, Normal, OnePage), and setting minimum zoom limits for better PDF viewing. |
| Text Search | Search for text and navigate all occurrences in a document. |
| Text Selection | Select and copy text in the PDF using touch/mouse interactions with customization and event support for retrieving selected text. |
| Page Navigation | Navigate between pages in the PDF using methods, built‑in commands, and events to track page changes. |
| Printing PDF | Print PDF documents from the viewer using built‑in printing support and customization options. |
| Annotations | Add, edit, and manage various PDF annotations (like text, shapes, ink, and stamps) with customization and interaction support. |
| Exporting Pages As Image | Export PDF pages as images programmatically with options to customize output and save them in image formats. |
| Custom Toolbar | Create and customize a toolbar in the PDF Viewer by replacing or extending default toolbar items with custom UI elements and actions. |
| Bookmark Navigation | Navigate PDF bookmarks interactively to jump between sections quickly within the document. |
| Hyperlink | Interact with hyperlinks in the PDF to navigate to web URLs or different locations within the document directly. |
| Localization | Configure the PDF Viewer to support multiple languages by adding resource files and setting the app’s culture for localized UI elements like the context menu. |
Key features
- Open, view and print the PDF documents.
- Perform text selection and text search in the PDF document.
- Zoom tools and view modes for better viewing experience.
- App bar can be completely customized using the API bindings.
- Navigate to the pages instantly.
- Navigate to bookmarks already present in a PDF document.
- Navigate to the topic or position by tapping the document link annotation of the topics in the table of contents in a PDF document.
- Detects hyperlinks, and tapping on the hyperlink will open the URL in a browser.
- Review and annotate a PDF document using various annotations, such as highlight, underline, strikethrough, line, rectangle, ellipse, ink, custom stamp, sticky note, free text, and free text callout.
- Add and modify the existing form field content in a PDF document.
- All static text within the PDF Viewer can be localized to any supported language.