syncfusion/pdf-viewer-sdk-skills/syncfusion-angular-pdf-viewer
Claude Code and agent skill by syncfusion/pdf-viewer-sdk-skills
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install syncfusion/pdf-viewer-sdk-skills/syncfusion-angular-pdf-viewerSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as syncfusion/pdf-viewer-sdk-skills/syncfusion-angular-pdf-viewer.
Syncfusion Angular PDF Viewer UI Sample Generator
Target package: @syncfusion/ej2-angular-pdfviewer
Mandatory 3-Step workflow (Strict Enforcement)
EVERY query MUST follow these steps sequentially:
Blocking Rules
- NO code generation until Steps 1 & 2 are complete
- NO assumptions - Always verify workspace AND read reference files first
- NO undocumented APIs - Use ONLY APIs from reference files
Violation = STOP and restart with proper protocol
Mandatory Workflow
STEP 1: Workspace Detection (REQUIRED - DO THIS FIRST)
Execute these tools:
Report to user:
STEP 2: Read Reference File (REQUIRED - DO THIS SECOND)
Execute these steps:
Report to user:
STEP 3: Generate Code (EXECUTE ONLY AFTER STEPS 1 & 2)
Validation checklist:
- [ ] Every API cross-referenced against reference file
- [ ] No invented/assumed properties used
- [ ] Angular patterns followed (component bindings, lifecycle hooks)
- [ ] If API not in reference file ? DELETE it
If feature not in reference file:
Reference File Routing Guide
Core Setup
| User Query Keywords | Reference File | Purpose | |
|---|---|---|---|
| "basic", "create sample", "getting started", "load PDF" | getting-started.md | Minimal PDFViewer setup | |
| "configuration", "server settings", "locale" | general-properties.md | Core viewer properties | |
| "disable", "hide features", "enable/disable", "read-only" | enable-properties.md | Feature toggles |
Navigation
| User Query Keywords | Reference File | Purpose | |
|---|---|---|---|
| "page navigation", "next/previous page", "go to page" | page-navigation.md | Page controls | |
| "bookmarks", "table of contents", "TOC", "outline" | bookmark-navigation.md | Bookmark navigation (use ViewChild) | |
| "hyperlinks", "external links", "URL navigation" | hyperlink-navigation.md | Link handling | |
| "thumbnails", "preview pages", "thumbnail panel" | thumbnail-navigation.md | Thumbnail panel |
Viewing & Interaction
| User Query Keywords | Reference File | Purpose | |
|---|---|---|---|
| "zoom", "magnification", "fit to page", "scale" | magnification.md | Zoom controls | |
| "text selection", "panning", "scroll mode" | interaction-mode.md | Interaction modes | |
| "select text", "copy text" | text-selection.md | Text selection | |
| "search", "find in PDF", "highlight search" | text-search.md | Search functionality |
Toolbar & Context Menu
| User Query Keywords | Reference File | Purpose | |
|---|---|---|---|
| "customize toolbar", "hide toolbar items", "remove buttons" | toolbar-settings.md | Toolbar configuration | |
| "show/hide toolbar dynamically", "toggle toolbar" | toolbar-methods.md | Programmatic toolbar control | |
| "right-click menu", "context menu", "custom menu" | contextmenu.md | Context menu |
Annotations
| User Query Keywords | Reference File | Purpose | |
|---|---|---|---|
| "annotation colors", "annotation styles", "customize annotations" | annotation-settings.md | Annotation appearance | |
| "annotation events", "when annotation added", "annotation callbacks" | annotation-events.md | Annotation lifecycle | |
| "annotation labels", "shape labels", "measurement labels" | shape-label-settings.md | Label customization | |
| "ink annotation", "freehand drawing", "signature", "sketch", "handwritten notes" | ink-annotation.md | Ink annotations | |
| "redaction", "redact content", "black out text" | redaction-annotation.md | Redaction annotations |
Forms
| User Query Keywords | Reference File | Purpose | |
|---|---|---|---|
| "form field defaults", "form field styles" | form-field-settings.md | Form field config | |
| "form field events", "field changes", "validation" | form-field-events.md | Form field events |
Document Actions
| User Query Keywords | Reference File | Purpose | |
|---|---|---|---|
| "download PDF", "save PDF", "export" | download.md | Download functionality | |
| "print PDF", "print document" | print.md | Print functionality | |
| "reorder pages", "rotate pages", "add/remove pages" | organize-pages.md | Page manipulation |
Advanced
| User Query Keywords | Reference File | Purpose | |
|---|---|---|---|
| "load programmatically", "API methods", "extract text" | api-methods.md | Programmatic control | |
| "event list", "all events", "event reference" | events.md | Complete event list |
Toolbar Item Name Validation (CRITICAL)
When generating toolbar configurations:
- ALWAYS read `toolbar-settings.md` first
- Use ONLY names from these sections:
- "Available Primary Toolbar Items"
- "Available Annotation Toolbar Items"
- "Available Form Designer Items"
- Character-by-character validation required - No typos allowed
Common mistakes to prevent:
- ?
AnotatetionEditTool? ?AnnotationEditTool - ?
CalibrationOption? ?CalibrateTool - ?
ShapeAnnotationOption? ?ShapeTool
Quick Start Example
Add the Angular PDF Viewer by using <ejs-pdfviewer> selector in the template section of the src/app/app.ts file to render the PDF Viewer component.
Settings Configurations
Rule 1: Simple Settings (1-3 properties) ? Inline
Rule 2: Complex Settings (4+ properties or enums) ? Import enums
Protocol Violation Handling
| Violation | Fix | |
|---|---|---|
| Skipped Step 1 | Re-run: Use file_search and list_dir first | |
| Skipped Step 2 | Re-run: Use read_file on reference file | |
| Used undocumented API | Delete it, check reference for alternatives | |
| Didn't report findings | Report: "I checked X, found Y, now doing Z" |
If user calls out violation: IMMEDIATELY acknowledge, apologize, and restart with proper protocol.
Enforcement Checklist
Before generating code, verify:
- [ ] Step 1 executed (workspace detection) and reported
- [ ] Step 2 executed (reference file read) and reported
- [ ] Every API validated against reference file
- [ ] No undocumented APIs used
- [ ] Angular patterns followed
Reference files are SOURCE OF TRUTH - everything must trace back to them.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/syncfusion-angular-pdf-viewer/SKILL.md
Popularity
- Repository stars
- 2
- Repository forks
- 1
- 7-day trend score
- 5
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/syncfusion/pdf-viewer-sdk-skills/syncfusion-angular-pdf-viewer)