{"id":28417084,"url":"https://github.com/netmarkjp/pptrhtmltopdf","last_synced_at":"2025-10-05T15:48:28.491Z","repository":{"id":50042873,"uuid":"223509709","full_name":"netmarkjp/pptrhtmltopdf","owner":"netmarkjp","description":"Convert HTML to PDF using Chrome (Puppeteer)","archived":false,"fork":false,"pushed_at":"2024-02-20T23:32:39.000Z","size":358,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-14T12:59:47.072Z","etag":null,"topics":["chrome","chrome-headless","headless-chrome","node","pdf","puppeteer","wkhtmltopdf"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/netmarkjp.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-23T00:44:44.000Z","updated_at":"2025-03-08T13:17:36.000Z","dependencies_parsed_at":"2024-09-19T03:20:46.356Z","dependency_job_id":null,"html_url":"https://github.com/netmarkjp/pptrhtmltopdf","commit_stats":{"total_commits":33,"total_committers":2,"mean_commits":16.5,"dds":"0.030303030303030276","last_synced_commit":"8aa186ae6fb0087383a3aba04512144be751828f"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/netmarkjp/pptrhtmltopdf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netmarkjp%2Fpptrhtmltopdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netmarkjp%2Fpptrhtmltopdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netmarkjp%2Fpptrhtmltopdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netmarkjp%2Fpptrhtmltopdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/netmarkjp","download_url":"https://codeload.github.com/netmarkjp/pptrhtmltopdf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netmarkjp%2Fpptrhtmltopdf/sbom","scorecard":{"id":680889,"data":{"date":"2025-08-11","repo":{"name":"github.com/netmarkjp/pptrhtmltopdf","commit":"9e35317746173414c7212b0be8749782db7e6eb2"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 1/27 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":9,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'contents' permission set to 'read': .github/workflows/docker-publish.yml:30","Warn: no topLevel permission defined: .github/workflows/docker-publish.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Pinned-Dependencies","score":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docker-publish.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/netmarkjp/pptrhtmltopdf/docker-publish.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/docker-publish.yml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/netmarkjp/pptrhtmltopdf/docker-publish.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/docker-publish.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/netmarkjp/pptrhtmltopdf/docker-publish.yml/master?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:1: pin your Docker image by updating node:18.16-bookworm to node:18.16-bookworm@sha256:f4698d49371c8a9fa7dd78b97fb2a532213903066e47966542b3b1d403449da4","Warn: npmCommand not pinned by hash: Dockerfile:41-42","Info:   0 out of   1 GitHub-owned GitHubAction dependencies pinned","Info:   3 out of   5 third-party GitHubAction dependencies pinned","Info:   0 out of   1 containerImage dependencies pinned","Info:   0 out of   1 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"14 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22","Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-76p7-773f-r4q5","Warn: Project is vulnerable to: GHSA-pq67-2wwv-3xjx","Warn: Project is vulnerable to: GHSA-8cj5-5rvv-wf4v","Warn: Project is vulnerable to: GHSA-cchq-frgv-rjh5","Warn: Project is vulnerable to: GHSA-g644-9gfx-q4q4","Warn: Project is vulnerable to: GHSA-4vvj-4cpr-p986","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-21T23:07:48.841Z","repository_id":50042873,"created_at":"2025-08-21T23:07:48.841Z","updated_at":"2025-08-21T23:07:48.841Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278477818,"owners_count":25993540,"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","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["chrome","chrome-headless","headless-chrome","node","pdf","puppeteer","wkhtmltopdf"],"created_at":"2025-06-04T03:11:17.330Z","updated_at":"2025-10-05T15:48:28.461Z","avatar_url":"https://github.com/netmarkjp.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pptrhtmltopdf\n\nConvert HTML to PDF using Chrome (Puppeteer)\n\nExport PDF from Websites or HTML Files.\n\nAlterative of [wkhtmltopdf](https://wkhtmltopdf.org/) but pptrhtmltopdf uses Headless Chrome.\n\n- Add cover page :ok:\n- Add backcover page :ok:\n- Generate TOC page  :ok:\n- Support multi HTML :ok:\n- Support local HTML :ok:\n- Support Website :ok:\n\nOutput PDF Example: [examples/output-examples.pdf](examples/output-example.pdf)\n\n# Install\n\n```bash\nnpm install pptrhtmltopdf\n```\n\n# Usage\n\n```bash\nNAME\n    pptrhtmltopdf [OPTIONS] [FILE or URL]...\n\n    Convert HTML to PDF using Chrome (Puppeteer)\n\nDESCRIPTION\n    --output=[FILE]    Save PDF to [FILE]\n    --cover=[FILE]     Use [FILE] to cover\n    --backcover=[FILE] Use [FILE] to backcover\n    --generate-toc     Generate TOC(Table of Contents)\n    --no-sandbox       Disable Chrome's sandboxing\n    --debug            Run in DEBUG mode\n    --version          Show version\n    --help             Show this help\n```\n\nRun `pptrhtmltopdf` or `node_modules/.bin/pptrhtmltopdf`\n\n## Example\n\n### Capture https://github.com/netmarkjp/pptrhtmltopdf to `./output.pdf`\n\n```bash\npptrhtmltopdf https://github.com/netmarkjp/pptrhtmltopdf\n```\n\n### Capture https://github.com/netmarkjp/pptrhtmltopdf/blob/master/README.md and https://github.com/netmarkjp/pptrhtmltopdf/blob/master/LICENSE to `docs.pdf` with TOC\n\n```bash\npptrhtmltopdf --generate-toc --output=docs.pdf \\\n    https://github.com/netmarkjp/pptrhtmltopdf/blob/master/README.md \\\n    https://github.com/netmarkjp/pptrhtmltopdf/blob/master/LICENSE\n```\n\n# Run on Docker\n\n```bash\ndocker run --rm -it -v $(pwd):/mnt -w /mnt ghcr.io/netmarkjp/pptrhtmltopdf \\\n        --generate-toc \\\n        --output=/mnt/output.pdf \\\n        https://github.com/netmarkjp/pptrhtmltopdf/blob/master/README.md \\\n        https://github.com/netmarkjp/pptrhtmltopdf/blob/master/LICENSE\n```\n\n# Development\n\n```\n# build\nnpm run-script build\n```\n\n```\n# run\nnpm run-script run -- \\\n    --debug \\\n    --generate-toc \\\n    --output=/path/to/output.pdf \\\n    --cover=/path/to/cover.html \\\n    --backcover=/path/to/backcover.html \\\n    /path/to/i.html \\\n    /path/to/ii.html \\\n    /path/to/iii.html\n```\n\nNOTE:\n\n- Cover(Back Cover) and TOC are not counted within page number.\n\n# Stack\n\n- Node 18\n- Puppeteer 20.7\n- pdf-lib 1.2\n- pdf-tex-extract 1.5\n- TypeScript 5.1\n\n# TODO\n\nHigh\n\n- CI/CD\n\nModerate\n\n- Footer formatting\n- Header\n- TOC customise\n- PDF page size customise\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetmarkjp%2Fpptrhtmltopdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetmarkjp%2Fpptrhtmltopdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetmarkjp%2Fpptrhtmltopdf/lists"}