Skills Plugins MCP Prompt Model 博客 我的中心

pdf

Process PDF files - extract text, create PDFs, merge documents. Use when user asks to read PDF, create PDF, or work with PDF files.

DeepseekModel 官方收录技能 质量 优秀 · 90 v1.0.0

获取

https://deepseekmodel.com/api/download.php?id=shareai-lab-learn-claude-code-skills-pdf-skill-md&format=skill
下载 .skill 标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用
.skill 文件中 system_prompt 字段的实际内容。
name pdf description Process PDF files - extract text, create PDFs, merge documents. Use when user asks to read PDF, create PDF, or work with PDF files. PDF Processing Skill You now have expertise in PDF manipulation. Follow these workflows: Reading PDFs Option 1: Quick text extraction (preferred) # Using pdftotext (poppler-utils) pdftotext input.pdf - # Output to stdout pdftotext input.pdf output.txt # Output to file # If pdftotext not available, try: python3 -c " import fitz # PyMuPDF doc = fitz.open('input.pdf') for page in doc: print(page.get_text()) " Option 2: Page-by-page with metadata import fitz # pip install pymupdf doc = fitz. open ( "input.pdf" ) print ( f"Pages: { len (doc)} " ) print ( f"Metadata: {doc.metadata} " ) for i, page in enumerate (doc): text = page.get_text() print ( f"--- Page {i+ 1 } ---" ) print (text) Creating PDFs Option 1: From Markdown (recommended) # Using pandoc pandoc input.md -o output.pdf # With custom styling pandoc input.md -o output.pdf --pdf-engine=xelatex -V geometry:margin=1in Option 2: Programmatically from reportlab.lib.pagesizes import letter from reportlab.pdfgen import canvas c = canvas.Canvas( "output.pdf" , pagesize=letter) c.drawString( 100 , 750 , "Hello, PDF!" ) c.save() Option 3: From HTML # Using wkhtmltopdf wkhtmltopdf input.html output.pdf # Or with Python python3 -c " import pdfkit pdfkit.from_file('input.html', 'output.pdf') " Merging PDFs import fitz result = fitz. open () for pdf_path in [ "file1.pdf" , "file2.pdf" , "file3.pdf" ]: doc = fitz. open (pdf_path) result.insert_pdf(doc) result.save( "merged.pdf" ) Splitting PDFs import fitz doc = fitz. open ( "input.pdf" ) for i in range ( len (doc)): single = fitz. open () single.insert_pdf(doc, from_page=i, to_page=i) single.save( f"page_ {i+ 1 } .pdf" ) Key Libraries Task Library Install Read/Write/Merge PyMuPDF pip install pymupdf Create from scratch ReportLab pip install reportlab HTML to PDF pdfkit pip install pdfkit + wkhtmltopdf Text extraction pdftotext brew install poppler / apt install poppler-utils Best Practices Always check if tools are installed before using them Handle encoding issues - PDFs may contain various character encodings Large PDFs : Process page by page to avoid memory issues OCR for scanned PDFs : Use pytesseract if text extraction returns empty
Agent 识别该技能的关键词,点击任意一个即可复制。

该技能未提供触发词。

下载的 .skill 包内含以下字段。
字段 说明
format格式标识(skill/v1)
skill_id技能唯一 ID
name技能名称
version版本号
description技能描述
category所属分类(数组)
trigger_words触发词列表
tags标签列表
source来源标识
source_url来源链接(本页地址)
exported_at导出时间(每次下载生成)
system_prompt系统提示词正文
model_config模型参数:provider / model / temperature / max_tokens / top_p
examples示例
install_guide各平台导入说明(Coze / Dify / Claude / 自定义框架)
同一份技能可按不同平台格式导出。
.skill 标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用 下载
.skillpro 增强格式,额外含脚本 / 工具 / 依赖 / 钩子占位 下载
.json 纯 JSON 导出,只含 system_prompt 与模型参数 下载
Coze 带 frontmatter 的 Markdown,Coze 平台导入用 下载
Dify Dify DSL,创建应用后直接导入 下载

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

验证码 --

提交后我们会发送一封确认邮件,点击邮件里的链接才会开始收信。

完全免费,取消任意时间。我们不会发送垃圾邮件。