Playwright PDF Export Automation

Automates headless PDF generation from web pages using the Playwright chromium.launch() API with custom page.pdf() options. Supports A4/Letter sizing, header/footer templates, and configurable margins via Playwright's PDFOptions interface.

agentskillexchange Updated 28 repo stars

File contents

Playwright PDF Export Automation

Automates headless PDF generation from web pages using the Playwright chromium.launch() API with custom page.pdf() options. Supports A4/Letter sizing, header/footer templates, and configurable margins via Playwright's PDFOptions interface.

Installation

Use the upstream install or setup path that matches your environment:

  • npm install -g @playwright/cli@latest
  • npm i playwright

Requirements and caveats from upstream:

Basic usage or getting-started notes:

Source

agentskillexchange/skills/tree/main/skills/playwright-pdf-export-automation commit 230da6bb56

Frequently asked questions

npx skillmds@latest add agentskillexchange/playwright-pdf-export-automation