这篇内容能帮你做什么
下面是一组只面向“在线工具生成”的 AI 提示词(Prompts),主题聚焦在 PDF/A 合规校验、问题定位、自动修复与批量报告。每条 Prompt 都要求 AI 产出完整可运行项目:包含源码、文件结构、运行命令、部署说明,以及可验证的测试用例或 QA checklist。
在线 PDF/A 合规校验与报告生成工具
上传单个或批量 PDF,选择目标规范(PDF/A-1b、PDF/A-2b、PDF/A-3b),输出可下载的合规报告(JSON + HTML + 可打印版)。
English Prompt:
Build a production-ready web app called "PDF/A Validator".
Goal
- Users upload one or many PDF files and validate them against PDF/A-1b, PDF/A-2b, or PDF/A-3b.
- Show a per-file result summary and a detailed findings list. Allow exporting reports as JSON and HTML.
Hard requirements
- Output MUST be a complete runnable project with:
1) full source code
2) file tree
3) local run commands
4) Dockerfile + docker-compose for deployment
5) tests (unit/integration) OR a QA checklist with >= 5 concrete cases
- Validation engine: use veraPDF CLI in a Docker container (or embed it via a service). Do NOT rely on paid APIs.
- Backend: Node.js (Fastify or Express). Frontend: Next.js or React + Vite.
- Security: file size limits, MIME sniffing, virus-scan placeholder hook, and storage cleanup policy.
- Performance: stream uploads, avoid loading entire files into memory, and show progress.
Features
- Drag-and-drop upload, batch queue, progress per file
- Validation options: choose PDF/A profile
- Report viewer: list of rules violated, affected s, and references
- Export: download ZIP containing all reports
Deliverables
- Provide the full repository structure
- Include an example .env
- Provide step-by-step deployment instructions
- Provide at least 5 test cases, e.g. valid PDF/A, non-PDF file, oversized file, corrupted PDF, PDF with font not embedded.
中文释义:让 AI 直接生成一个可部署的在线校验工具,核心是把 veraPDF 做成稳定的后端能力,并把结果转成用户看得懂的报告与导出包。
在线 PDF/A 问题定位:字体嵌入与子集化检查面板
专注展示字体相关不合规项:缺失嵌入、子集化错误、字体名称冲突等,并给出可操作的修复建议。
English Prompt:
Create a web tool "PDF/A Font Inspector".
Purpose
- Analyze PDFs for font embedding and subsetting issues relevant to PDF/A.
- Present a clear UI to help users understand which fonts cause non-compliance.
Implementation
- Backend Node.js service that calls veraPDF for compliance and parses the /JSON output.
- Additionally extract font resources using open-source tooling (e.g. pdfcpu, qpdf, or pdf-lib where possible) to list fonts per page.
- Frontend React UI with tables and filtering.
Must output
- Full runnable project (code + file tree)
- Commands to run locally
- Docker deployment steps
- Tests or QA checklist (>= 5) including: PDF with missing font embedding, PDF with subset fonts, PDF with font name collisions, multi-page PDF with mixed fonts, password-protected PDF handling.
中文释义:把“字体不合规”这个最常见的 PDF/A 问题单独做成可视化诊断工具,便于运营/法务/印前同学快速定位。
在线 PDF/A 修复工具:自动嵌入字体与颜色空间修正(安全策略版)
提供“修复前预检 + 备份 + 只做可逆修复”的策略,并把修复动作记录到变更日志。
English Prompt:
Build a web app "PDF/A Repair (Safe Mode)".
Goal
- Users upload a PDF and choose a target PDF/A profile.
- The app attempts safe, reversible fixes where possible ( data normalization, XMP fixes, basic color profile insertion if missing), then re-validates.
Constraints
- Do NOT claim you can fix everything. If an issue requires manual intervention (e.g. missing fonts without access to the font files), the app must report it clearly.
- Provide a "dry-run" mode that only reports what would be changed.
Tech
- Node.js backend orchestrating open-source tools (qpdf/pdfcpu/ghost where appropriate) via containerized services.
- Use Docker Compose to run these tools (no external paid services).
Deliverables
- Full code + file tree
- Local run + Docker deployment
- Audit log format (JSON)
- Tests/QA (>= 5): dry-run, successful data fix, failure case, re-validation pass/fail, and cleanup of temporary files.
中文释义:让 AI 生成“可解释的修复工具”,把能自动修的和必须人工处理的边界讲清楚,避免误导用户。
在线 PDF/A 元数据与 XMP 规范化工具
聚焦补齐/修正标题、作者、创建时间、XMP 包等,让归档系统可正确索引。
English Prompt:
Create an online tool "PDF data & XMP Normalizer" for PDF/A workflows.
Features
- Upload PDF, display current data and XMP
- Provide a form to edit common fields
- Apply changes and output a new PDF
- Re-run PDF/A validation and show before/after results
Stack
- Next.js frontend
- Node.js backend using open-source PDF tooling
- Optional: store output files temporarily with expiry
Deliverables
- Complete runnable project with file tree
- Commands + Docker deployment
- Include QA checklist with >= 5 cases (missing data, invalid date format, unicode author names, huge PDF, and corrupted XMP packet).
中文释义:把“元数据乱”这类合规问题变成可编辑、可复检的一键流程,适合资料归档与批量交付。
在线 PDF/A 批量校验流水线:队列、速率限制与可追溯任务 ID
适用于大量文件交付前的批量自检:支持任务队列、断点续传、失败重试与下载统一报告包。
English Prompt:
Design and implement "PDF/A Batch Pipeline".
Requirements
- Provide a web UI to create a batch job and upload many PDFs.
- Backend must process files asynchronously with a queue (BullMQ / Redis).
- Each job gets a stable jobId; provide endpoints to query status.
- Produce a final ZIP with per-file reports and a summary CSV.
Non-functional
- Rate limiting per IP
- Max file size and max batch count
- Automatic cleanup of uploads and outputs
Deliverables
- Full repository with code + file tree
- docker-compose including Redis and the app
- Tests/QA >= 5: job creation, cancellation, retry on tool failure, large batch behavior, and concurrent users isolation.
中文释义:让 AI 生成“可运营”的批处理系统,而不是只做单文件 demo,强调队列、审计、清理与并发隔离。
在线 PDF/A 颜色空间与 ICC Profile 检查工具
检测是否存在未标注的颜色空间、缺失 ICC Profile 等问题,并把风险点按页面/对象归类。
English Prompt:
Build "PDF Color & ICC Checker" for PDF/A preflight.
Functionality
- Upload PDF
- Run PDF/A validation and extract findings related to color spaces, OutputIntent, ICC profiles
- Provide a UI that highlights which pages/ s are impacted (as references, not images)
Deliverables
- Full runnable code + file tree
- Local run + Docker deploy
- Provide >= 5 QA cases: RGB-only PDF, CMYK PDF without OutputIntent, valid PDF/A with ICC, mixed color spaces, and encrypted PDF.
中文释义:把印前/归档经常遇到的颜色合规问题单独拆出来做诊断面板,避免用户在长报告里翻找。
在线 PDF/A 附件(Embedded Files)与 PDF/A-3 检查工具
面向 PDF/A-3 场景:列出嵌入附件、MIME、关联关系,并输出可审计清单。
English Prompt:
Create "PDF/A-3 Attachment Inspector".
Features
- Upload PDF
- Detect embedded files, list names, sizes, MIME types
- Validate PDF/A-3 compliance and show attachment-related constraints
- Export an audit manifest (JSON)
Deliverables
- Complete project (code + file tree)
- Run commands + Docker
- QA checklist >= 5: PDF with no attachments, PDF with one attachment, multiple attachments, invalid MIME, and oversized attachment behavior.
中文释义:专门处理 PDF/A-3 附件合规,把附件信息变成可导出的审计清单,适合电子档案交付。
在线 PDF/A 前置自检表单生成器:把报告转成可签字的 QA Checklist
把合规校验结果转成“可执行的自检清单”,便于团队协作与签字留痕。
English Prompt:
Implement a tool "PDF/A QA Checklist Generator".
Goal
- Upload a PDF, run PDF/A validation.
- Convert findings into a human-readable checklist with pass/fail items.
- Allow exporting as Markdown and printable HTML.
Deliverables
- Full runnable project with code + file tree
- Local run + Docker
- Tests/QA >= 5 including: no findings, many findings, invalid PDF, localization (Chinese UI), and export correctness.
中文释义:把技术报告翻译成“非技术同学也能执行”的清单格式,输出 Markdown/HTML,便于流程化交付与留档。