{"id":15732384,"url":"https://github.com/stopsopa/docker-puppeteer-pdf-generator","last_synced_at":"2026-04-12T00:11:23.144Z","repository":{"id":84269012,"uuid":"134007727","full_name":"stopsopa/docker-puppeteer-pdf-generator","owner":"stopsopa","description":"Microservice tool to generate pdf from any url/page","archived":false,"fork":false,"pushed_at":"2023-09-01T23:36:52.000Z","size":1348,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-06T08:21:41.352Z","etag":null,"topics":["chromium","docker","google-chrome","microservice","node-js","nodejs","pdf","pdf-generation","puppeteer"],"latest_commit_sha":null,"homepage":"https://stopsopa.github.io/docker-puppeteer-pdf-generator/example.html","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/stopsopa.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":"2018-05-18T21:56:32.000Z","updated_at":"2023-09-01T23:36:23.000Z","dependencies_parsed_at":"2024-10-24T23:21:35.313Z","dependency_job_id":"b2b52a0b-b729-40dc-b17a-1032c27bb795","html_url":"https://github.com/stopsopa/docker-puppeteer-pdf-generator","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stopsopa%2Fdocker-puppeteer-pdf-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stopsopa%2Fdocker-puppeteer-pdf-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stopsopa%2Fdocker-puppeteer-pdf-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stopsopa%2Fdocker-puppeteer-pdf-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stopsopa","download_url":"https://codeload.github.com/stopsopa/docker-puppeteer-pdf-generator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246413230,"owners_count":20773053,"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":["chromium","docker","google-chrome","microservice","node-js","nodejs","pdf","pdf-generation","puppeteer"],"created_at":"2024-10-04T00:09:08.696Z","updated_at":"2025-10-06T20:49:32.066Z","avatar_url":"https://github.com/stopsopa.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DEPRECATED\nCreated in 2018 - quite old now and not maintained.\n\nI wouldn't suggest using it. I'm sure there are better solutions today.\n\n# Versions:\n    \nIn this repository there are two versions available. One with Google Chrome another with Chromium.\nFor more information see [releases](https://github.com/stopsopa/docker-puppeteer-pdf-generator/releases)\n\nI had to have Google Chrome because footerTemplate and headerTemplate options of command page.pdf(options) didn't worked in chromium. see \n[page.pdf(options) doc page](https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#pagepdfoptions)\n\n\n# Installation:\n\n    git clone this repository and go to main directory\n    yarn\n    make build\n    cp config.js.dist config.js\n    \n    # manually change password in config.js for basic auth\n    \n    node server.js --port 7777\n    \n\n# Using:\n    \nJust visit:\n\n        http://localhost:7777/generate\n\n\n# cli tool:\n\n    /bin/bash pdf.sh \"https://www.google.com/search?ncr=\u0026q=puppeteer\"\n\n    /bin/bash pdf.sh \"https://www.google.com/search?ncr=\u0026q=puppeteer\" pdf.pdf\n    \n    \n# Current execution environment:\n\n    - node v8.9.4\n    - yarn\n    - Docker version 18.03.1-ce, build 9ee9f40\n    \n# Puppeteer in Docker:\n    \n[Running puppeteer in Docker](https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md#running-puppeteer-in-docker)       \n    \n# Ping:\n    \n    http://xx.xx.xx.xx:7777/pdf-generator-check \n    http://slowwly.robertomurray.co.uk/delay/32000/url/https://github.com/stopsopa/docker-puppeteer-pdf-generator\n    \n# Useful things:  \n        \n    docker run -it --rm puppeteer-alpine-generate-pdf /usr/bin/chromium-browser --version        \n        $ Chromium 64.0.3282.168\n        \n    or if you follow node:8-slim : https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md#running-puppeteer-in-docker\n        docker run -it --rm --cap-add=SYS_ADMIN --rm slootsantos/puppeteer-chrome-linux /usr/bin/google-chrome-unstable --version\n            Google Chrome 68.0.3438.3 dev\n        \n    on mac:\n        /Applications/Google\\ Chrome.app/Contents/MacOS/Google\\ Chrome --version\n            $ Google Chrome 66.0.3359.181\n        /Applications/Google\\ Chrome\\ Canary.app/Contents/MacOS/Google\\ Chrome\\ Canary --version\n            $ Google Chrome 69.0.3445.0 canary\n    \n        \n# Dev notes:\n    \nI've build this \"on top\" of docker not \"in\" docker which mean that I have instance of node server an this server creates on demand container with puppeteer to generate one pdf and kill this container because there is chance that this approach will make entire solution more stable.\nAnd this server was ment to build as fast as possible to do its job. Main priority was to build it fast and make it work and it's seems to work so far.\n           \n    \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstopsopa%2Fdocker-puppeteer-pdf-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstopsopa%2Fdocker-puppeteer-pdf-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstopsopa%2Fdocker-puppeteer-pdf-generator/lists"}