
Product
Socket Now Protects the Chrome Extension Ecosystem
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
playwright-docusaurus-pdf
Advanced tools
+
This project is still in active development. You can clone or fork the repository to use in your own projects.
PDF generator for Docusaurus 2.0+ using Playwright. Playwright will crawl your local site or published site to generate a PDF for all the available pages within the docs instance.
If you need to generate multiple PDFs for separate docs instances, invoke the CLI with the different base paths for the site.
npx playwright-docusaurus-pdf -o ./dist/output.pdf -base-url http://localhost:3000 -p /docs/welcome
-o
, --output-file
The destination path for the generated PDF.
-base-url
, --base-url
The URL to open to crawl with playwright.
-p
, --path
The initial page path to open.
-d
, --delay
The option delay to add to page loads before capturing the image for the PDF. Used to offset long JavaScript render delays.
-r
, --replace
Replace all instances of the baseUrl
in link tags with a destination url. Used to replace local environment urls with a production url.
-f
, --format
The page format such as A4
. If unspecified, each page will resize to the scrollable width and height of the webpage.
npm install
npm run build
To test the CLI locally, run the following command to link the /dist
output with your global package registry.
npm link
FAQs
PDF generator for Docusaurus 2+ using Playwright
The npm package playwright-docusaurus-pdf receives a total of 1 weekly downloads. As such, playwright-docusaurus-pdf popularity was classified as not popular.
We found that playwright-docusaurus-pdf demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.