Token导航 LogoToken导航

Agent Skill · 前端设计

syncfusion-javascript-pdf(syncfusion JavaScript PDF 测试)

用于辅助 Java 项目开发、面向对象设计、Spring 生态、Maven 或 Gradle 依赖和后端工程实践。它适合让 Agent 分析类结构、设计接口、整理服务分层、生成测试或检查常见代码坏味道。使用时需要结合项目已有架构、包结构和依赖版本,不应只按通用教程改代码;涉及数据库、事务、并发或框架配置时,应先确认运行环境和回归测试范围。

syncfusion-javascript-pdf 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 4,250。

总安装 945周安装 39GitHub Stars 公开资料未说明下载 309核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:syncfusion-javascript-pdf(syncfusion JavaScript PDF 测试)
来源仓库:https://github.com/syncfusion/document-sdk-skills
仓库路径:skills/syncfusion-javascript-pdf
安装命令:
npx skills add https://github.com/syncfusion/document-sdk-skills --skill syncfusion-javascript-pdf
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/syncfusion/document-sdk-skills --skill syncfusion-javascript-pdf

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

用于辅助 Java 项目开发、面向对象设计和 Spring 生态实践。适合分析类结构、设计接口、整理服务分层或生成测试用例。通过 npx skills add 命令从指定 GitHub 仓库安装使用。使用时需结合项目已有架构,避免仅按通用教程修改代码。

syncfusion-javascript-pdf 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/syncfusion-javascript-pdf

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/syncfusion/document-sdk-skills --skill syncfus…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

syncfusion-javascript-pdf 怎么安装?

在终端执行 npx skills add https://github.com/syncfusion/document-sdk-skills --skill syncfusion-javasc…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

syncfusion-javascript-pdf 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

syncfusion-javascript-pdf 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

syncfusion-javascript-pdf 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

syncfusion-javascript-pdf 用的人多吗?

公开数据是累计安装 945 次,近一周安装 39 次,下载 309 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

syncfusion-javascript-pdf 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
syncfusion-javascript-pdf

syncfusion JavaScript PDF 测试 · 本页

945—需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Processing PDF Documents

A comprehensive skill for creating, reading, and manipulating PDF documents programmatically using the Syncfusion JavaScript PDF library. This library provides seamless integration for TypeScript, JavaScript, Angular, React, Vue, ASP.NET Core, and ASP.NET MVC applications.

When to Use This Skill

Use this skill when the user needs to:

  • Create PDF documents from scratch with text, images, shapes, and other graphical elements
  • Manipulate existing PDFs by adding content, modifying properties, or extracting data
  • Add interactive features such as forms, annotations, bookmarks, and hyperlinks
  • Secure PDFs with digital signatures
  • Merge or split PDF documents for document management workflows
  • Extract content including text and images from existing PDFs
  • Add watermarks (text or image-based) for branding or security
  • Manage document informations including title, author, subject, keywords, and dates
  • Work with PDF layers for complex document structures
  • Implement templates for consistent document generation

Platform Support: TypeScript, JavaScript, Angular, React, Vue, ASP.NET Core, ASP.NET MVC

Library Overview

The Syncfusion JavaScript PDF library (@syncfusion/ej2-pdf) is a powerful, high-performance class library that enables:

  • Creating PDF documents from scratch without Adobe Acrobat
  • Loading, editing, and saving existing PDF files
  • Opening password-protected PDF documents
  • Adding text, images, shapes, and graphical elements
  • Interactive components (bookmarks, annotations, form fields)
  • Document operations (merge, split, flatten)
  • Content extraction (text, images)
  • Security features (digital signatures, redaction)

Key Classes:

  • PdfDocument - Main document object
  • PdfPage - Individual pages
  • PdfGraphics - Drawing surface for content
  • PdfFont, PdfBitmap, PdfBrush - Content elements

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

Use this reference when the user needs to:

  • Install the @syncfusion/ej2-pdf package
  • Set up the library for TypeScript, JavaScript, Angular, React, Vue, or ASP.NET
  • Understand dependencies and requirements
  • Create their first PDF document
  • Learn basic save and export operations

Document Creation & Settings

📄 Read: references/document-settings.md

Use this reference for:

  • Creating PdfDocument instances
  • Configuring page settings (size, orientation, margins, rotation)
  • Setting document properties (title, author, subject, keywords, creation/modification dates)
  • Enabling incremental updates
  • Flattening annotations and form fields

📄 Read: references/pdf-pages.md

Use this reference for:

  • Adding pages to documents
  • Page manipulation and navigation
  • Page sections with different settings
  • Managing page collections

Content Elements

📄 Read: references/text-rendering.md

Use this reference when adding text:

  • Drawing text with drawString() method
  • Font types (Standard, TrueType, CJK fonts)
  • Font styles, sizes, and formatting
  • Text layout and wrapping
  • Graphics state management (save/restore)
  • Text positioning and bounds

📄 Read: references/images.md

Use this reference for image operations:

  • Adding JPEG and PNG images
  • Using PdfBitmap class
  • Image positioning and sizing
  • Inserting images into existing documents
  • Base64 and Uint8Array image formats
  • Clipping and graphics transformations

📄 Read: references/shapes.md

Use this reference for drawing shapes:

  • Rectangles, circles, ellipses, lines
  • Complex paths and curves
  • Pens and brushes for styling
  • Fill and stroke operations
  • Graphics transformations (translate, rotate, scale)

📄 Read: references/lists.md

Use this reference for creating lists:

  • Ordered and unordered lists
  • Nested list structures
  • Custom list markers
  • List formatting options

📄 Read: references/templates.md

Use this reference for reusable content:

  • Creating page templates
  • Dynamic content stamping
  • Template positioning and layout
  • Reusing content across pages

Interactive Features

📄 Read: references/annotations.md

Use this reference for annotations:

  • Annotation types (free text, ink, stamp, etc.)
  • Adding and configuring annotations
  • Annotation properties and appearance
  • Flattening annotations to static content

📄 Read: references/bookmarks.md

Use this reference for navigation:

  • Creating document bookmarks
  • Nested bookmark hierarchies
  • Bookmark navigation and linking
  • Modifying existing bookmarks

📄 Read: references/form-fields.md

Use this reference for interactive forms:

  • Form field types (text, checkbox, radio, dropdown, button)
  • Adding and configuring form fields
  • Field validation and properties
  • Filling form data programmatically
  • Importing/exporting form data
  • Flattening forms to remove interactivity

📄 Read: references/hyperlinks.md

Use this reference for linking:

  • Adding web hyperlinks
  • Document internal navigation links
  • Link annotations and appearance
  • Navigation actions

Document Operations

📄 Read: references/merge-documents.md

Use this reference for merging:

  • Combining multiple PDF files
  • Importing pages from other documents
  • Preserving bookmarks during merge
  • Merging workflows

📄 Read: references/split-documents.md

Use this reference for splitting:

  • Splitting PDFs by page range
  • Extracting specific pages
  • Creating separate documents from pages

📄 Read: references/watermarks.md

Use this reference for watermarks:

  • Text watermarks
  • Image watermarks
  • Watermark positioning and layout
  • Opacity and rotation settings

📄 Read: references/layers.md

Use this reference for layer management:

  • Creating PDF layers (Optional Content Groups)
  • Layer visibility control
  • Adding content to layers
  • Removing or flattening layers

Data Extraction

📄 Read: references/text-extraction.md

Use this reference for extracting text:

  • Extracting text from PDF pages
  • Text extraction layouts
  • Text bounds and positioning
  • Extracting from specific regions

📄 Read: references/image-extraction.md

Use this reference for extracting images:

  • Extracting images from PDF documents
  • Image data formats
  • Saving extracted images
  • Required package: @syncfusion/ej2-pdf-data-extract

Security & Protection

📄 Read: references/digital-signatures.md

Use this reference for security:

  • Adding digital signatures
  • Certificate-based signing
  • Signature appearance customization
  • Validation and verification
  • Timestamp servers

📄 Read: references/redaction.md

Use this reference for content removal:

  • Redacting sensitive text
  • Shape redaction
  • Redaction annotations
  • Permanent content removal

Quick Start Example

import { PdfDocument, PdfPage, PdfGraphics, PdfFont, PdfFontFamily, PdfFontStyle, PdfBrush } from '@syncfusion/ej2-pdf';

// Create a new PDF document
let document: PdfDocument = new PdfDocument();

// Add a page
let page: PdfPage = document.addPage();

// Get graphics from the page
let graphics: PdfGraphics = page.graphics;

// Set font
let font: PdfFont = document.embedFont(PdfFontFamily.helvetica, 20, PdfFontStyle.regular);

// Create a brush
let brush = new PdfBrush({r: 0, g: 0, b: 0});

// Draw text
graphics.drawString('Hello World!', font, {x: 20, y: 20, width: 200, height: 50}, brush);

// Save the document
document.save('output.pdf');

// Clean up
document.destroy();

Common Workflows

Create Invoice or Report

  1. Create document with custom page settings
  2. Add company logo (image)
  3. Add header text with formatting
  4. Create tables with borders (shapes + text)
  5. Add totals and footer
  6. Save and download

Start with: references/getting-started.md, then references/text-rendering.md and references/images.md

Fill and Flatten PDF Form

  1. Load existing PDF document with form fields
  2. Fill form fields programmatically
  3. Flatten form to make it non-editable
  4. Save modified document

Start with: references/form-fields.md

Extract Data from PDF

  1. Load existing PDF document
  2. Extract text from specific pages
  3. Extract images if needed
  4. Parse and process extracted data

Start with: references/text-extraction.md and references/image-extraction.md

Merge Multiple PDFs

  1. Create main document
  2. Import pages from source documents
  3. Optionally add bookmarks for sections
  4. Save combined document

Start with: references/merge-documents.md

Add Digital Signature

  1. Load document or create new one
  2. Configure digital signature with certificate
  3. Set signature appearance and position
  4. Save signed document

Start with: references/digital-signatures.md

Platform-Specific Considerations

TypeScript/JavaScript

  • Direct import from @syncfusion/ej2-pdf
  • Browser or Node.js environment
  • File saving via browser download or Node.js fs

Angular/React/Vue

  • Component-based integration
  • Handle file downloads in component lifecycle
  • State management for document generation

ASP.NET Core/MVC

  • Server-side PDF generation
  • Return PDF as file result
  • Memory stream handling

For platform-specific setup details, see references/getting-started.md

Key Props and Methods

PdfDocument

  • addPage(settings?) - Add new page
  • getPage(index) - Access existing page
  • save(filename) - Save document
  • destroy() - Clean up resources
  • embedFont() - Load font for use

PdfGraphics

  • drawString(text, font, bounds, brush) - Draw text
  • drawImage(image, bounds) - Draw image
  • drawRectangle(pen, bounds) - Draw rectangle
  • save() - Save graphics state
  • restore(state) - Restore graphics state

PdfPage

  • graphics - Get drawing surface
  • size - Get page dimensions
  • rotation - Get/set rotation

For complete API details, refer to the specific reference files.

Common Use Cases

  1. Automated Report Generation - Create branded reports with charts, tables, and formatted text
  2. Invoice Creation - Generate professional invoices with line items and totals
  3. Certificate Generation - Create certificates with templates and custom text
  4. Form Filling - Programmatically fill PDF forms for bulk processing
  5. Document Assembly - Merge multiple PDFs into consolidated documents
  6. Data Extraction - Extract text and images from PDFs for processing
  7. Digital Signing - Apply digital signatures for document authentication
  8. Watermarking - Add branding or security watermarks to documents
  9. Redaction - Remove sensitive information before sharing
  10. Archive Creation - Convert documents to PDF/A format for long-term storage

Troubleshooting Tips

  • Missing fonts: Ensure font is embedded before use with document.embedFont()
  • Image not displaying: Verify image format (JPEG/PNG) and data (base64/Uint8Array)
  • Large files: Use incremental updates or split operations
  • Memory issues: Call document.destroy() after saving
  • Extract features not working: Install @syncfusion/ej2-pdf-data-extract package

Related Resources

  • Package: @syncfusion/ej2-pdf
  • Add-on: @syncfusion/ej2-pdf-data-extract (for extraction features)
  • Dependencies: @syncfusion/ej2-compression, @syncfusion/ej2-base

平台分布

Codex

38.48%
按下载量换算119

Claude

31.78%
按下载量换算98

Cursor

17.97%
按下载量换算56

Gemini CLI

8.68%
按下载量换算27

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills