MCPInstall

syncfusion-winforms-pdf-viewer

Create WinForms applications featuring the Syncfusion WinForms PDF Viewer, customized to meet specific user requirements. It supports essential PDF operations such as loading, saving, printing, text search, text extraction, and bookmark or hyperlink navigation. Additional capabilities include zooming, interaction modes, localization, theming, rendering engine selection, and robust error handling, enabling the creation of tailored and fully functional PDF viewing solutions.

Installs
55
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-winforms-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-winforms-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.

Syncfusion WinForms PdfViewer - UI Sample generator

Generate C# Code for the User's Project (default)

Trigger keywords: "code", "snippet", "how to write", "Program.cs", "show me", "sample", "integrate", "example code", "generate code for", "create sample", "winforms pdfviewer".

Purpose: Generate clean, ready-to-use C# code snippets that directly insert into their WinForms application when working with Syncfusion WinForms PdfViewer control.

Workflow:

  1. Build the C# code using the snippets provided in the references/*.md files.
  2. Before generating the sample, ask the user whether the code should be:Integrated into an existing WinForms project, or Created as a new WinForms application.
  3. If the user chooses to create a new WinForms project, ask them which target framework they want to use: -.NET Framework (e.g., 4.6, 4.7, 4.8) — uses Syncfusion.PdfViewer.WinForms and targets the classic .NET Framework. -.NET / .NET Core (e.g., .NET 8, .NET 10) — uses Syncfusion.PdfViewer.WinForms with <TargetFramework>net8.0-windows</TargetFramework> (or the selected version).
  4. Based on the user's choice: Generate the .csproj file with the correct <TargetFramework> value. Add the required NuGet packages. Tailor any framework-specific code, such as namespace imports, form initialization, startup code (Program.cs), and PDF Viewer setup, accordingly.
  5. Add only the APIs required to satisfy the user's requested functionality. Do not include optional APIs, additional.

Code References

All templates and snippets are in the references/ folder. Each file is a focused snippet or template the agent will combine when generating sample:

FileContents
view-pdfviewer.mdNuGet setup, add PdfViewerControl/PdfDocumentView, load PDF
saving-pdf-files.mdSave PDF via toolbar, programmatic save using LoadedDocument.Save(), BeginSave and EndSave events
printing-pdf-files.mdPrint PDF via toolbar, silent printing using Print(), customize print size (ActualSize, Fit, CustomScale), print orientation (Auto, Portrait, Landscape), hide print status dialog, BeginPrint, PrintProgress, and EndPrint events
extract-text.mdExtract text from a single page using ExtractText(pageIndex, out textLines), extract text from entire file using PageCount loop, extract text with line bounds via TextLines/TextLine, extract words with bounds via WordCollection/TextWord
pdf-rendering-engines.mdSwitch rendering engine using RenderingEngine property (PDFium default, SfPdf alternative), set custom PDFium binary path via ReferencePath for restricted-access environments
searching-text.mdSearch next/previous text instance using SearchNextText()/SearchPreviousText(), find all instances with bounds using FindText(), count total matches, enable/disable highlight all instances via TextSearchSettings.HighlightAllInstance, customize highlight colors via TextSearchSettings.CurrentInstanceColor/OtherInstanceColor
navigation.mdBookmark navigation, hyperlink handling, and page navigation (programmatic GoToBookmark(), HyperlinkClicked/HyperlinkMouseOver, GoToPageAtIndex())
localization.mdLocalize tooltip and context menu static text, default en-US localization keys table, add culture-specific Resx files (e.g., Syncfusion.PdfViewer.Windows.fr.resx), set custom assembly/namespace for localization using LocalizationManager.SetResources()
themes.mdApply built-in themes using ThemeName property (Office2016Colorful, Office2016Black, Office2016DarkGray, Office2016White, Office2019Colorful, HighContrastBlack), load theme assemblies via SkinManager.LoadAssembly(), reset to default theme
interaction-modes.mdSwitch cursor modes using CursorMode property — PdfViewerCursorMode.SelectTool for text selection (default), PdfViewerCursorMode.HandTool for panning/scrolling
error-handling.mdSubscribe to ErrorOccurred event, handle ErrorOccurredEventArgs.Message to log errors or display messages to users
magnifying.mdZoom to a specific percentage using ZoomTo(), get current zoom via ZoomPercentage, switch zoom modes using ZoomMode property (FitPage, FitWidth)
view-pdf-stream.mdLoad a PDF from a FileStream using the Load(stream) overload
document-information.mdAccess filename and file path of the loaded PDF via DocumentInformation.FileName and DocumentInformation.FilePath; get page count via PageCount
mouse-position.mdHandle PageClicked and PageMouseMove events to get page index and mouse position relative to the PDF page
host-wpf-pdfviewer-in-winforms.mdHost the WPF PdfViewer inside a WinForms app using ElementHost to access advanced features (annotations, form filling, signatures)
toolbar.mdShow/hide individual toolbar buttons (Open, Save, Zoom, Print, Pan) using ToolbarSettings.<Button>.IsVisible

Prerequisites

  • Development Environment:Visual Studio 2022 or Visual Studio insider 2026(recommended for .NET 10).
  • .NET Framework 4.5+ or .NET Core/NET 8+
  • Syncfusion WinForms NuGet Package: Syncfusion.PdfViewer.Windows

Documentations

FAQ

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

Create WinForms applications featuring the Syncfusion WinForms PDF Viewer, customized to meet specific user requirements. It supports essential PDF operations such as loading, saving, printing, text search, text extraction, and bookmark or hyperlink navigation. Additional capabilities include zooming, interaction modes, localization, theming, rendering engine selection, and robust error handling, enabling the creation of tailored and fully functional PDF viewing solutions.

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

Run npx skills add https://github.com/syncfusion/pdf-viewer-sdk-skills --skill syncfusion-winforms-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-winforms-pdf-viewer/ (personal) or .claude/skills/syncfusion-winforms-pdf-viewer/ (project).

Which AI agents can use syncfusion-winforms-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-winforms-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-winforms-pdf-viewer?

It is published by syncfusion in syncfusion/pdf-viewer-sdk-skills. It has 55 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

Open the skill to read its SKILL.md instructions.

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