/syncfusion-pdf-viewer-sdk:syncfusion-aspnetcore-pdf-viewerfrom Syncfusion PDF Viewer SDK
Implements the Syncfusion ASP.NET Core PDFViewer for embedding, configuring, and loading PDF documents. Use this when rendering PDFs in ASP.NET Core applications, embedding viewer controls, or generating Razor page (.cshtml) code for PDF display and interaction.
Ships in Syncfusion PDF Viewer SDK. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
NuGet: Syncfusion.EJ2.AspNet.Core
Trigger keywords: "how to", "add pdfviewer", "code sample", "show me", "example", "snippet", "integrate", "component", "create sample", "ASP.NET Core sample".
Purpose: Generate minimal, copy-pasteable Razor + HTML code (.cshtml) that the user can integrate directly into their ASP.NET Core project.
Workflow: ⚠️ CRITICAL — Feature Support Policy (STRICT MODE):
FUNDAMENTAL RULE: Only generate code using APIs and properties that are EXPLICITLY listed in the reference files. ANY deviation is a VIOLATION.
MANDATORY CHECKS BEFORE GENERATING ANY CODE:
STRICT ENFORCEMENT - ZERO TOLERANCE:
MANDATORY RESPONSE FOR UNSUPPORTED FEATURES:
"This feature is not supported in the current Syncfusion ASP.NET Core PDF Viewer implementation."
REFERENCE FILE HIERARCHY:
AUDIT YOUR GENERATION:
This is a CRITICAL REQUIREMENT. Violations compromise the skill's integrity and reliability.
references/*.md file(s) for the requested featureread_file tool on relevant references/*.md filesreferences/ directory."All templates and operation snippets live in references/*.md. Each file is a focused snippet or template the agent will combine when generating samples.
Flow: Always start with getting-started.md, then merge matched features into its anchors (PROPS, EVENTS, UI_BUTTONS, HANDLERS). If no keyword matches, return only the basic sample.
| File | Purpose |
|---|---|
| getting-started.md | Minimal PDF Viewer with documentPath, height, and width. Base template for all samples. |
| enable-properties.md | Enable/disable specific features (toolbar, annotations, forms, navigation, text selection, download, print). |
| general-properties.md | Configure core viewer properties and behavior (documentPath, width/height, locale, zoom/initialRenderPages), server/integration settings (serviceUrl, ajaxRequestSettings, serverActionSettings), resource loading (resourceUrl, customFonts), and performance/retry options. |
| File | Purpose |
|---|---|
| contextmenu.md | Context-aware context menu for text, annotations, and form fields; add custom items via addCustomMenu, handle clicks with customContextMenuSelect, dynamically show/hide items with customContextMenuBeforeOpen, and disable the menu using contextMenuOption. Configure default context menu using context menu settings. |
| File | Purpose |
|---|---|
| navigation.md | Enable/disable page navigation (first/last/previous/next/go to page), thumbnail view and navigation, hyperlink support (internal and external links), table of contents navigation, programmatic navigation methods, and navigation-related events. |
| bookmark-navigation.md | Enable/disable and show/hide bookmark navigation. Programmatically retrieve bookmarks for a document |
| File | Purpose |
|---|---|
| viewing-and-interaction.md | Understand interaction modes (Text Selection/Pan), page scrolling & viewing behavior, panning operations, feature modules for modular architecture, enabling/disabling specific viewing features, and core viewing capabilities. |
| magnification.md | Configure zoom levels & zoom percentages, zoom modes (fit to page/fit to width/fit to visible area/automatic), custom zoom control, programmatic zoom operations, zoom toolbar configuration, and mouse wheel zoom behavior. |
| File | Purpose |
|---|---|
| toolbar-customization.md | Customize the PDF viewer primary, form designer, annotation toolbars. Programmatically enable/disable toolbar, enable/disable and show/hide toolbar items. Lists the toolbar items available for toolbars. Enable/disable form designer, annotation or primary toolbars during initialization. Create a custom toolbar item |
| toolbar-reference.md | Use the toolbar API methods/properties to show/hide the primary/annotation/navigation/redaction toolbars. |
| toolbar-customization-scenarios.md | Common toolbar customization scenarios |
| File | Purpose |
|---|---|
| annotation-overview.md | Information about ink/freehand, sticky notes/comments, handwritten/digital signatures annotations and programmatically adding them. Overall annotation types and common default annotation settings example |
| text-markup-annotations.md | Programmatically add text markup annotations (Highlight, underline, strikethrough, squiggly). Manipulate default settings for each textmarkup annotations |
| shape-annotations.md | Information on shape annotations (Line, Arrow, Rectangle, Circle, Polygon). Programmatically adding shape annotations and manipulating default shape settings for each shape annotations |
| measurement-annotations.md | Information on measurement annotations (Distance, Perimeter, Area, Radius, Volume). Programmatically adding measurement annotations and manipulating default settings for each measurement annotations |
| stamp-annotation.md | Information on stamp annotations and different types of stamps available. Programmatically adding stamp annotations |
| free-text-annotations.md | Information on free text annotation. Programmatically adding free text annotations |
| annotation-settings.md | Configure appearance (colors, opacity, borders, styles) and behavior (restrictions, locking, printing) for all annotation types. Apply settings globally or per annotation type. Customize annotation selector (resizer, selection border). Set author, subject, and custom data. Control annotation-related component properties (toolbar visibility, signature settings, export options, drawing constraints). |
| annotation-events.md | Handle annotation lifecycle events (add, delete, move, resize, select, property change). |
| annotation-operations.md | Programmatically manipulate annotations like selection, moving and resizing, deleting, locking and importing and exporting annotations |
| annotation-use-cases.md | Common scenarios on how annotations can be programmatically manipulated |
| shape-label-settings.md | Configure shape and measure annotation label appearance (fill color, font, font size, opacity) and default content (label text, notes). |
| redaction-annotation.md | Hide and permanently remove sensitive information in PDFs. Mark content by area or full page, configure overlay text and styling, apply redactions irreversibly, search text and auto-redact, and manage redaction annotations programmatically. |
| File | Purpose |
|---|---|
| form-fields-overview.md | Fill and design PDF forms, manage form fields (field types like textbox/password/checkbox/radio/dropdown/listbox/signature), create fields programmatically, use the form designer toolbar/UI interactions, configure field properties/customization, apply validation rules and constraints/settings, use form field API methods, and handle import/export form data including custom field data. |
| supported-form-fields.md | Supported form field types and programmatically add each |
| form-fields-props.md | Lists properties of form fields. Lists common properties and specific properties to each field. Manipulate form field settings |
| import-export-form-data.md | Programmatically import and export form field data |
| form-operations.md | Programmatically manipulate form fields including updating properties and values, moving and resizing, deleting, grouping, adding custom data & retrieving form field data |
| form-field-validation.md | Enable/disable form field validation. Programmatic flow of form field validation and examples |
| form-field-settings.md | Configure default properties for form fields (text, checkbox, radio, dropdown, signature). |
| form-field-events.md | Handle form field interaction events (focus, blur, value change, validation). |
| File | Purpose |
|---|---|
| text-search.md | Implement text search in PDFs: search functionality, search options (case-sensitive/whole word), highlight search results, find next/previous occurrences, programmatic text search methods, search completion events, and custom highlight colors. Configure text extraction options/settings and programmatically extract text from pages |
| text-selection.md | Enable text selection and text extraction: selection modes/behavior, copy selected text, text selection events, programmatic selection, and text collections/bounds. |
| File | Purpose |
|---|---|
| opening-pdfs.md | Load PDFs from URL/local paths/base64, open encrypted/password-protected PDFs, support programmatic document loading, handle document load events/lifecycle, and manage load failures/errors. |
| saving-and-downloading.md | Download PDFs, save PDFs with annotations/modifications, download with form data included, retrieve PDFs as base64, customize download events, and set custom download filenames. |
| printing-and-organizing.md | Print PDFs (including print options like page range/quality and silent printing), handle print events, organize pages (overview/rearrange/reorder/rotate/delete), copy/duplicate/extract pages to a new document, and use the page organizer toolbar with programmatic + mobile page organization. |
| File | Purpose | Route When User Asks About |
|---|---|---|
| api-methods.md | Programmatic control: load documents, manage forms, annotations, extract text, undo/redo, navigation APIs. | "load PDF programmatically", "API methods", "export form data", "extract text", "undo/redo", "programmatic control" |
| events.md | Complete list of all PDFViewer events (document load, download, annotations, forms, search, navigation). | "event list", "all events", "available events", "event reference", "event handlers" |
@page
@model IndexModel
@{
ViewData["Title"] = "Home page";
}
<div class="text-center">
<ejs-pdfviewer id="pdfviewer" style="height:600px"
documentPath="https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf"
annotationAdd="annotationAdded" >
</ejs-pdfviewer>
</div>
When generating code with settings (toolbarSettings, annotationSettings, annotationSelectorSettings, arrowSettings, rectangleSettings, etc.), follow these guidelines to prevent unnecessary imports and over-engineering:
Use this approach when:
Example (DO THIS):
<ejs-pdfviewer
annotationSelectorSettings="@(new {
selectionBorderColor = "blue",
resizerBorderColor = "red",
resizerFillColor = "#4070ff",
resizerSize = 8,
selectionBorderThickness = 1,
resizerShape = "Circle",
selectorLineDashArray = new int[] { 5, 6 },
resizerLocation = "Corners|Edges",
resizerCursorType = "grab"
})">
</ejs-pdfviewer>
Benefits:
Use this approach when:
Example (DO THIS ONLY FOR COMPLEX CASES):
@{
var annotationSelectorSettings = new {
selectionBorderColor = "blue",
resizerBorderColor = "red",
resizerFillColor = "#4070ff",
resizerSize = 8,
selectionBorderThickness = 1,
resizerShape = "Circle",
selectorLineDashArray = new int[] { 5, 6 },
resizerLocation = "Corners|Edges",
resizerCursorType = "grab"
};
}
<ejs-pdfviewer annotationSelectorSettings="@annotationSelectorSettings">
</ejs-pdfviewer>
❌ DO NOT DO THIS (Over-engineered):
@{
var toolbarSettings = new Syncfusion.EJ2.PdfViewer.PdfViewerToolbarSettings { ShowTooltip = true };
}
<ejs-pdfviewer
toolbarSettings="@toolbarSettings"
>
</ejs-pdfviewer>
✅ DO THIS INSTEAD (Simple & Clean):
<ejs-pdfviewer
toolbarSettings="@(new Syncfusion.EJ2.PdfViewer.PdfViewerToolbarSettings { ShowTooltip = true })">
</ejs-pdfviewer>
README.md (opens in a new tab)references/annotation-events.md (opens in a new tab)references/annotation-operations.md (opens in a new tab)references/annotation-overview.md (opens in a new tab)references/annotation-settings.md (opens in a new tab)references/annotation-use-cases.md (opens in a new tab)references/api-methods.md (opens in a new tab)references/bookmark-navigation.md (opens in a new tab)references/contextmenu.md (opens in a new tab)references/enable-properties.md (opens in a new tab)references/events.md (opens in a new tab)references/form-field-events.md (opens in a new tab)references/form-field-settings.md (opens in a new tab)references/form-field-validation.md (opens in a new tab)references/form-fields-overview.md (opens in a new tab)references/form-fields-props.md (opens in a new tab)references/form-operations.md (opens in a new tab)references/free-text-annotations.md (opens in a new tab)references/general-properties.md (opens in a new tab)references/getting-started.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub syncfusion/boldcreate-plugins --plugin syncfusion-pdf-viewer-sdk13 skills in this plugin
/syncfusion-angular-pdf-viewerImplements 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./syncfusion-aspnetmvc-pdf-viewerImplements the Syncfusion ASP.NET MVC PDFViewer for embedding, configuring, and loading PDF documents. Use this when rendering PDFs in ASP.NET MVC applications, embedding viewer controls, or generating Razor page (.cshtml) code for PDF display and interaction./syncfusion-