{"id":22916665,"url":"https://github.com/synergitech/chrome-pdf","last_synced_at":"2026-05-10T09:32:09.803Z","repository":{"id":48314292,"uuid":"149264532","full_name":"SynergiTech/chrome-pdf","owner":"SynergiTech","description":"Simple Node wrapper around puppeteer (Chrome headless) to generate PDFs and screenshots from the command line","archived":false,"fork":false,"pushed_at":"2021-08-02T05:27:06.000Z","size":42,"stargazers_count":2,"open_issues_count":5,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-07T12:02:53.654Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SynergiTech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-18T09:43:05.000Z","updated_at":"2022-10-30T14:15:40.000Z","dependencies_parsed_at":"2022-09-16T14:10:26.219Z","dependency_job_id":null,"html_url":"https://github.com/SynergiTech/chrome-pdf","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SynergiTech%2Fchrome-pdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SynergiTech%2Fchrome-pdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SynergiTech%2Fchrome-pdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SynergiTech%2Fchrome-pdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SynergiTech","download_url":"https://codeload.github.com/SynergiTech/chrome-pdf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246642172,"owners_count":20810556,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-14T06:14:12.422Z","updated_at":"2026-05-10T09:32:04.762Z","avatar_url":"https://github.com/SynergiTech.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# chrome-pdf\n[![npm](https://img.shields.io/badge/npm-chrome--pdf-green.svg?logo=npm)](https://www.npmjs.com/package/chrome-pdf)\n\n## Install\nSorry for the required usage of --unsafe-perm ¯\\\\\\_(ツ)\\_/¯\n```\nnpm install -g --unsafe-perm --production chrome-pdf\n```\n\n```\napt install gconf-service \\\nlibasound2 \\\nlibatk1.0-0 \\\nlibatk-bridge2.0-0 \\\nlibc6 \\\nlibcairo2 \\\nlibcups2 \\\nlibdbus-1-3 \\\nlibexpat1 \\\nlibfontconfig1 \\\nlibgcc1 \\\nlibgconf-2-4 \\\nlibgdk-pixbuf2.0-0 \\\nlibglib2.0-0 \\\nlibgtk-3-0 \\\nlibnspr4 \\\nlibpango-1.0-0 \\\nlibpangocairo-1.0-0 \\\nlibstdc++6 \\\nlibx11-6 \\\nlibx11-xcb1 \\\nlibxcb1 \\\nlibxcomposite1 \\\nlibxcursor1 \\\nlibxdamage1 \\\nlibxext6 \\\nlibxfixes3 \\\nlibxi6 \\\nlibxrandr2 \\\nlibxrender1 \\\nlibxss1 \\\nlibxtst6 \\\nca-certificates \\\nfonts-liberation \\\nlibappindicator1 \\\nlibnss3 \\\nlsb-release \\\nxdg-utils \\\nwget\n```\n\n## Usage\nHelp:\n```\nchrome-pdf --help\n```\n\nRender a site:\n```\nchrome-pdf pdf --page https://bbc.co.uk --path output.pdf\n```\n\nRender HTML:\n```\nchrome-pdf pdf --content \"\u003ch1\u003echrome-pdf\u003c/h1\u003e\" --path output.pdf\n```\n\nScreenshot a site:\n```\nchrome-pdf screenshot --page https://bbc.co.uk --path output.png\n```\n\nScreenshot a fullpage site:\n```\nchrome-pdf screenshot --page https://bbc.co.uk --fullPage --path output.png\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsynergitech%2Fchrome-pdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsynergitech%2Fchrome-pdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsynergitech%2Fchrome-pdf/lists"}