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.
67 stars
0 votes
0 copies
1 view
Added June 8, 2026
ai-agentspythongojavabashgitapisecurity
Works with
claude code
cli
api
Security analysis
B84/100
mediumInstalls packages at runtime which could introduce malicious dependencies
mediumInstalls packages at runtime which could introduce malicious dependencies
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Playwright Pdf Export Automation?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/agentskillexchange-playwright-pdf-export-automation)
---
name: "Playwright PDF Export Automation"
slug: "playwright-pdf-export-automation"
description: "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."
github_stars: 86409
verification: "security_reviewed"
source: "https://github.com/microsoft/playwright"
category: "Browser Automation"
framework: "Claude Code"
tool_ecosystem:
github_repo: "microsoft/playwright"
github_stars: 86409
npm_package: "playwright"
npm_weekly_downloads: 47883561
---
# 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:
- Playwright is also available for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), and [Java](https://playwright.dev/java/docs/intro).
Basic usage or getting-started notes:
- bash
- Optionally install skills for richer agent integration:
- playwright-cli install --skills
- Source: https://github.com/microsoft/playwright
- Extracted from upstream docs: https://raw.githubusercontent.com/microsoft/playwright/HEAD/README.md
## Source
- [Agent Skill Exchange](https://agentskillexchange.com/skills/playwright-pdf-export-automation/)