浏览器

Skill Playwright Html Pdf Renderer Migrate2

试用

Render deterministic PDFs from HTML using local Playwright/Chromium.

它能做什么

Render deterministic PDFs from HTML using local Playwright/Chromium.

技能文档

Playwright HTML → PDF Renderer

Setup (one-time per environment)

  • npm install playwright
  • npx playwright install chromium

The npx playwright install chromium step is bootstrap-only. Do not run it per request.

Runtime (every render request)

  1. Launch Playwright Chromium headless.
  2. Load HTML (file://... or setContent).
  3. Wait for readiness (networkidle, document.fonts.ready).
  4. Export with page.pdf({ printBackground: true, preferCSSPageSize: true }).
  5. Close browser and verify output file exists.

API keys

  • Local Playwright/Chromium: no API key required.
  • Cloud browser provider: provider API key required.

相关技能

Render PDF pages to images, extract embedded images, annotate PDFs, and perform advanced PDF inspection using pymupdf (fitz). Use for tasks such as exporting...

29 次安装

Run browser automation through @playwright/mcp over UXC stdio MCP, with daemon-friendly session reuse and safe action guardrails. Use when tasks need determi...

35 次安装

Design and visually review print-ready PDFs

1 次安装

基于微软 Playwright CLI 的浏览器自动化技能。用于 Web 测试、页面交互、自动化工作流。当用户提到 playwright、browser automation、Web 测试、E2E 测试时触发。

3 次安装

Use when Codex is building or iterating on a web game (HTML/JS) and needs a reliable development + testing loop: implement small changes, run a Playwright-ba...

8 次安装