MCPInstall

syncfusion-uwp-pdf-viewer

Implements Syncfusion UWP SfPdfViewerControl for native Windows PDF viewing, page navigation, annotations, text search/selection, ink signatures, printing, bookmark/hyperlink navigation, and toolbar/UI customization. Use when working with PDF viewer setup, document loading, annotations workflows in UWP apps.

Installs
45
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/syncfusion/pdf-viewer-sdk-skills --skill syncfusion-uwp-pdf-viewer
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads syncfusion-uwp-pdf-viewer automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Implementing UWP PDF Viewer (SfPdfViewerControl)

The Syncfusion SfPdfViewerControl is a native UWP control for viewing, annotating, searching, and printing PDF documents. It uses the Windows rendering engine (Windows.Data.Pdf) by default and supports an optional PDFium renderer.

Security Notice ⚠️

When loading PDFs from untrusted or user-provided sources, always validate hyperlinks and content before allowing navigation. PDFs can contain malicious hyperlinks that may direct users to untrusted websites or perform unintended actions. Always implement hyperlink validation using the HyperlinkPointerPressed event to inspect and authorize navigation targets before allowing them. See references/bookmarks-and-hyperlinks.md for validation code examples.

When to Use This Skill

Use this skill when you need to:

  • View and navigate PDF documents in UWP applications
  • Load PDFs from streams, StorageFile objects, or byte arrays
  • Add and manage annotations (highlight, underline, strikethrough, ink, shapes, free text, popup, stamp)
  • Search and select text within PDF documents
  • Navigate pages, bookmarks, and hyperlinks (with proper validation for untrusted sources)
  • Print PDF documents with custom quality and preview settings
  • Create custom toolbars wired to PDF Viewer commands
  • Configure zoom, view modes, scrollbar, and progress ring
  • Localize the viewer UI
  • Export PDF pages as images or use the PDFium custom renderer

Component Overview

SfPdfViewerControl is a comprehensive PDF viewing and management control for UWP with these capabilities:

  • Document Management: Load from PdfLoadedDocument, Stream, or StorageFile (sync and async with CancellationToken); save with annotations; unload and dispose
  • Annotations: Text markup (highlight, underline, strikethrough), shape (rectangle, ellipse, line), ink with Windows Ink Canvas support, popup (sticky note), free text, free text callout, and custom stamp annotations
  • Text Operation: Text selection with color customization, synchronous and asynchronous text search with next/previous navigation
  • Navigation & UI: Page navigation commands, bookmarks, hyperlink handling, zoom/view modes, thumbnail view, separate desktop and mobile toolbar layouts, scrollbar and progress ring customization
  • Utilities & Advanced: Export pages as images (GetPage, GetPages, ExportAsImage), vertical/horizontal offset access, PDFium custom renderer via IPdfRenderer interface, page number display

Documentation and Navigation Guide

Getting Started & Setup

📄 Read: references/getting-started.md

  • Covers required assemblies, NuGet packages, adding the control via XAML or code, ItemsSource binding, and the DocumentLoaded event
  • Explains synchronous and asynchronous loading methods, page count access, saving (Save/SaveAsync), unloading, and disposing

Document Operations

📄 Read: references/viewing-pdf.md

  • Describes loading PDFs from PdfLoadedDocument, Stream, and StorageFile objects using both sync and async approaches
  • Covers CancellationToken support for async loading, saving with annotations, and viewer unload/dispose patterns

Page Navigation & Viewing

📄 Read: references/page-navigation.md

  • Explains programmatic page navigation, built-in navigation commands (FirstPage, LastPage, NextPage, PreviousPage), and XAML command binding
  • Covers the PageChanged event, page count, page gap, offset collection, and toggling the page number display

Magnification & View Modes

📄 Read: references/magnification.md

  • Covers zoom control via ZoomTo, increase/decrease zoom commands, and view mode options (FitWidth, Normal, OnePage)
  • Explains MinimumZoomPercentage, thumbnail view toggle, and reading the current zoom value

Text Search

📄 Read: references/text-operations.md

  • Explains synchronous and asynchronous text search, forward/backward result navigation, and SearchNextCommand/SearchPreviousCommand
  • Covers GetTextCoordinates for retrieving the page positions of all text matches

Text Selection

📄 Read: references/text-operations.md

  • Describes enabling text selection, customizing the selection highlight color, and the TextSelectionCompleted event
  • Covers copying selected text to the clipboard

Annotations

📄 Read: references/annotations.md

  • Covers all supported annotation types: text markup (highlight, underline, strikethrough), shapes (rectangle, ellipse, line), ink with Windows Ink Canvas, popup, free text, free text callout, and custom stamps
  • Explains annotation events (Added, Tapped, Selected, Removed, MovedOrResized), deleting annotations, AnnotationCollection, undo/redo, and the IsDocumentEdited property

Printing

📄 Read: references/printing.md

  • Explains the Print method, PrintCommand, and async printing with CancellationToken support
  • Covers QualityFactor, customizing or disabling the print preview dialog, and setting the document name via PrinterSettings

Bookmarks & Hyperlinks

📄 Read: references/bookmarks-and-hyperlinks.md

  • Explains navigating to bookmarks via GoToBookmark and retrieving the bookmark collection from PdfLoadedDocument
  • 🔒 REQUIRED - Hyperlinks Validation: Provides essential code examples for inspecting and validating hyperlinks via HyperlinkPointerPressed events. Always validate hyperlink sources from untrusted PDFs before allowing navigation to prevent malicious redirects and injection attacks. See the reference document for secure implementation patterns.

Localization

📄 Read: references/localization.md

  • Covers setting the default language in the app manifest and adding .resw resource files for UI string localization
  • Explains supported resource file names and changing the context menu language

Gesture Events & Interaction

📄 Read: references/utilities.md

  • Covers pointer events on hyperlinks (HyperlinkPointerPressed, HyperlinkPointerMoved) for custom interaction handling
  • Explains using the PageChanged and DocumentLoaded events to drive post-navigation and post-load workflows

Utilities & Advanced

📄 Read: references/utilities.md

  • Covers exporting PDF pages as BitmapImage objects (GetPage, GetPages) and as image streams (ExportAsImage)
  • Explains accessing vertical/horizontal scroll offsets, using the PDFium custom renderer via IPdfRenderer, and the ShowPageNumber and VerticalScrollBarWidth properties

FAQ

What does the syncfusion-uwp-pdf-viewer skill do?

Implements Syncfusion UWP SfPdfViewerControl for native Windows PDF viewing, page navigation, annotations, text search/selection, ink signatures, printing, bookmark/hyperlink navigation, and toolbar/UI customization. Use when working with PDF viewer setup, document loading, annotations workflows in UWP apps.

How do I install syncfusion-uwp-pdf-viewer?

Run npx skills add https://github.com/syncfusion/pdf-viewer-sdk-skills --skill syncfusion-uwp-pdf-viewer in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/syncfusion-uwp-pdf-viewer/ (personal) or .claude/skills/syncfusion-uwp-pdf-viewer/ (project).

Which AI agents can use syncfusion-uwp-pdf-viewer?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is syncfusion-uwp-pdf-viewer safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains syncfusion-uwp-pdf-viewer?

It is published by syncfusion in syncfusion/pdf-viewer-sdk-skills. It has 45 recorded installs.

More from syncfusion/pdf-viewer-sdk-skills

View all →

syncfusion-react-pdf-viewer

syncfusion/pdf-viewer-sdk-skills

Implements the Syncfusion React PDF Viewer (PdfViewerComponent) for embedding, configuring, and loading PDF documents. Use this when rendering PDFs in a React application, embedding viewer controls, or generating TSX/HTML code for PDF display and interaction.

Docs & Writing122 installs

syncfusion-maui-pdf-viewer

syncfusion/pdf-viewer-sdk-skills

Implements Syncfusion .NET MAUI SfPdfViewer for cross-platform PDF viewing, navigation, annotations, form filling/validation, text search/selection, e-signatures, redaction, printing, and toolbar/UI customization. Use when working with PDF viewer setup, document annotations, form fields, or signature workflows in MAUI apps.

Docs & Writing82 installs

syncfusion-angular-pdf-viewer

syncfusion/pdf-viewer-sdk-skills

Implements the Syncfusion Angular PDF Viewer (PdfViewerComponent) for embedding, configuring, and loading PDF documents. Use this when rendering PDFs in an Angular application, embedding viewer controls, or generating TS/CSS code for PDF display and interaction.

Docs & Writing68 installs

syncfusion-blazor-pdf-viewer

syncfusion/pdf-viewer-sdk-skills

Open the skill to read its SKILL.md instructions.

Docs & Writing65 installs

syncfusion-flutter-pdf-viewer

syncfusion/pdf-viewer-sdk-skills

Create sample code using Syncfusion Flutter SfPdfViewer. Generate Dart/Flutter code for embedding, configuring, and loading PDF documents.

Mobile60 installs

syncfusion-aspnetcore-pdf-viewer

syncfusion/pdf-viewer-sdk-skills

Open the skill to read its SKILL.md instructions.

Docs & Writing57 installs

Popular docs & writing skills

View category →

grill-with-docs

mattpocock/skills

A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.

Docs & Writing1.2M installs

lark-markdown

open.feishu.cn

飞书 Markdown:查看、创建、上传、编辑和比较飞书中的原生 Markdown 文件。当用户要操作飞书 Markdown 文件,或比较其远端版本及本地草稿时使用。纯本地 Markdown 文件操作不触发本 skill。不负责将 Markdown 导入为飞书在线文档,也不负责文件搜索、权限、评论、移动、删除等云空间管理操作。

Docs & Writing778.7K installs

writing-beats

mattpocock/skills

Writing, exploit; assemble raw material into a journey of beats, grounding each term before a beat leans on it.

Docs & Writing490.7K installs

writing-shape

mattpocock/skills

Writing, exploit: shape raw material into an article, paragraph by paragraph.

Docs & Writing490.2K installs

writing-fragments

mattpocock/skills

Writing, explore: mine raw fragments, no structure yet.

Docs & Writing489.6K installs

writing-for-agents

mattpocock/skills

Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.

Docs & Writing479.3K installs