在线 PDF 合并与拆分工具
生成一个可部署的网页工具:支持多文件合并、按页范围拆分、并导出结果文件。
英文 Prompt:
You are a senior full-stack engineer. Build a production-ready web app called "PDF Merge & Split". Requirements:
- Tech: Next.js (App Router) + Type + Tailwind CSS. Use pdf-lib in the browser for merge/split when possible; fall back to a Node API route for large files.
- UI: drag-and-drop upload, file list with reordering, page-range input (e.g., 1-3,5,8-), progress indicator, and download buttons.
- Output: Provide the full project file tree and complete source code for every file. Include package.json s.
- Commands: include exact commands to install, run dev, build, and start.
- Deployment: include Vercel deployment notes and a Dockerfile for self-hosting.
- Testing/QA: include at least 10 QA checklist items covering edge cases (encrypted PDFs, invalid ranges, very large files, mobile Safari).
Also include security notes (file size limits, memory usage, no server-side retention).
中文释义:
让 AI 输出一个完整可运行的在线 PDF 合并/拆分项目:含拖拽上传、文件排序、页码范围解析、进度与下载,并给出部署与 QA 清单。
PDF 批量压缩与质量档位工具(非图片生成)
生成一个在线工具:对用户上传的 PDF 进行多档位压缩,显示体积变化与可读性提示。
英文 Prompt:
Build a web tool "PDF Compressor" that compresses existing PDFs (do not generate images). Requirements:
- Provide 4 presets: Screen, Ebook, Printer, Prepress, and show estimated output size.
- Implement compression using a server-side worker (Node) that calls Ghost inside Docker; provide a queue to avoid CPU spikes.
- Include max file size rules, timeouts, and clear error messages.
- Provide complete code (file tree + source), including Dockerfile, docker-compose.yml, and a worker module.
- Provide a deployment guide for a small VPS (Nginx reverse proxy + HTTPS).
- Provide at least 10 tests or QA checks (e.g., PDFs with many embedded images, fonts, transparency, password-protected).
中文释义:
让 AI 产出一个可部署的 PDF 压缩网站:用 Ghost 对现有 PDF 做压缩(不是生成图片),包含队列/限流、错误处理、Docker 部署与 QA。
PDF 元数据清理与隐私检查工具
生成一个在线工具:读取 PDF 元数据,提示风险并可一键清理(作者/软件/创建时间等)。
英文 Prompt:
Create a web app "PDF data Cleaner". Requirements:
- Parse PDF data ( , Author, Subject, Keywords, Creator, Producer, CreationDate, ModDate) and display a privacy risk report.
- Provide actions: remove data, set safe defaults, and optionally add a watermark text layer "Confidential" (text only).
- Use Type . Prefer pdf-lib where feasible; if not possible in browser, implement a Node API using a maintained PDF library.
- Output full source code with clear separation: ui/, api/, utils/ data.ts.
- Include CLI mode (node ) for batch processing a folder on the server, and document how to run it.
- Provide at least 12 QA checklist items.
中文释义:
让 AI 生成一个“PDF 隐私体检 + 元数据清理”在线工具项目,并附带可批处理的 CLI 脚本与 QA 清单。
PDF 权限与加密检测工具(仅检测与再保存)
生成一个在线工具:检测 PDF 是否加密/受限,并输出可读的检查报告。
英文 Prompt:
Build "PDF Security Inspector" web tool. Requirements:
- Upload a PDF and detect encryption, permissions (print/copy/modify), and whether text extraction is allowed.
- Output a JSON report and a human-readable report view.
- Provide a safe server-side parsing approach (no persistence). Include file hashing for idempotent results but do not store files.
- Provide complete project source code + file tree + run/deploy instructions.
- Provide at least 10 QA items (corrupted PDFs, incremental updates, XFA forms).
中文释义:
让 AI 产出一个 PDF 安全/权限检查网站:上传后生成报告(JSON + 可读页面),强调安全与不落盘策略,并提供 QA。
PDF 批量旋转与页面重排工具
生成一个在线工具:可对页面批量旋转、删除、重新排序,并导出新 PDF。
英文 Prompt:
Build a web tool "PDF Page Organizer". Requirements:
- UI shows page thumbnails (render via PDF.js) and allows drag-to-reorder, rotate 90/180, delete pages, undo/redo.
- Export the modified PDF via pdf-lib (or server fallback).
- Provide complete code (Next.js + TS) with attention to performance (virtualized list, worker for rendering).
- Include a QA checklist of at least 12 items.
中文释义:
让 AI 生成一个可运行的 PDF 页面管理在线工具:缩略图预览、拖拽重排、旋转/删除、导出,并给出完整代码与 QA。
PDF 表单字段提取与填写模板工具(不生成图片)
生成一个在线工具:读取 AcroForm 字段,导出 JSON 模板,并支持导入模板批量填表生成新 PDF。
英文 Prompt:
Create "PDF Form Extractor & Filler" web app. Requirements:
- Detect AcroForm fields, show field list (name, type, required, default), export as JSON schema.
- Allow importing JSON values to fill fields and generate a new PDF.
- Include validation rules and error UI for missing required fields.
- Provide full project source code and a sample PDF + sample JSON in a /samples folder.
- Provide at least 10 QA checks.
中文释义:
让 AI 产出一个“PDF 表单字段提取/模板导出/导入批量填写”的在线工具项目(处理现有 PDF,不做出图),含样例与 QA。
PDF 批量加页码与页眉页脚工具(文字层)
生成一个在线工具:为现有 PDF 添加页码、日期、页眉页脚(仅文字覆盖层)。
英文 Prompt:
Build "PDF Header/Footer" online tool. Requirements:
- Add page numbers, document , and date to chosen positions (top-left/top-right/bottom-center etc).
- Provide templates and a live preview per page (render with PDF.js).
- Ensure added content is text layer (not raster images).
- Provide full Next.js + TS code, plus deployment instructions.
- Provide at least 12 QA checks (different page sizes, rotated pages, RTL text).
中文释义:
让 AI 生成一个可部署的“PDF 页眉页脚/页码”在线工具:对现有 PDF 叠加文字层,提供预览与模板,并附 QA。
PDF 批处理队列与任务记录工具(同一主题扩展)
生成一个在线工具:把合并/拆分/压缩/清理元数据做成统一任务队列,支持批量上传与任务下载包。
英文 Prompt:
Create a production-grade "PDF Batch Processor" web app that supports multiple operations (merge/split/compress/ data-clean) as a job queue.
- Provide a unified UI: choose operation per file or per batch, show job status, retry, and download results as a zip.
- Architecture: Next.js frontend + Node backend with a worker queue (BullMQ/Redis) + storage optional (S3) but default to in-memory with size limits.
- Provide a complete repo: file tree + source for frontend, backend, worker, and infra configs.
- Include environment variables documentation and a "no persistence" mode.
- Provide at least 15 QA checks and a simple load-test .
中文释义:
让 AI 产出一个“PDF 批处理队列”完整项目:前后端+Worker 队列,批量任务可下载 zip,提供部署、环境变量说明、以及更全面的 QA/压测清单。