Browser

Skill Playwright Html Pdf Renderer Migrate2

Try it

Render deterministic PDFs from HTML using local Playwright/Chromium.

What it does

Render deterministic PDFs from HTML using local Playwright/Chromium.

The skill document

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.

Related skills

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 installs

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 installs

Design and visually review print-ready PDFs

1 installs

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

3 installs

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 installs