{"id":20455551,"url":"https://github.com/xcoo/pdfshot","last_synced_at":"2025-04-13T03:42:28.362Z","repository":{"id":145413088,"uuid":"273179190","full_name":"xcoo/pdfshot","owner":"xcoo","description":"PDF screenshot generator for web pages","archived":false,"fork":false,"pushed_at":"2023-01-13T11:28:19.000Z","size":41,"stargazers_count":26,"open_issues_count":1,"forks_count":4,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-07-30T17:38:46.617Z","etag":null,"topics":["clojure","clojurescript","docker","puppeteer"],"latest_commit_sha":null,"homepage":null,"language":"Clojure","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/xcoo.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":"2020-06-18T08:09:06.000Z","updated_at":"2024-06-19T13:18:31.000Z","dependencies_parsed_at":"2023-06-05T00:00:47.454Z","dependency_job_id":null,"html_url":"https://github.com/xcoo/pdfshot","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xcoo%2Fpdfshot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xcoo%2Fpdfshot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xcoo%2Fpdfshot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xcoo%2Fpdfshot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xcoo","download_url":"https://codeload.github.com/xcoo/pdfshot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248661126,"owners_count":21141396,"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":["clojure","clojurescript","docker","puppeteer"],"created_at":"2024-11-15T11:19:11.766Z","updated_at":"2025-04-13T03:42:28.343Z","avatar_url":"https://github.com/xcoo.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pdfshot\n\n[![build](https://github.com/xcoo/pdfshot/workflows/build/badge.svg)](https://github.com/xcoo/pdfshot/actions?query=workflow%3Abuild)\n[![DockerHub](https://img.shields.io/docker/v/xcoo/pdfshot)](https://hub.docker.com/r/xcoo/pdfshot)\n\nPDF screenshot generator for web pages\n\n## Run pdfshot\n\n```shell\n$ docker pull xcoo/pdfshot:0.1.8\n$ docker run --rm \\\n             --cap-add=SYS_ADMIN \\\n             -e \"PDFSHOT_PORT=8000\" \\\n             -e \"PDFSHOT_TIMEOUT=60000\" \\\n             -p 8000:8000 \\\n             xcoo/pdfshot:0.1.8\n```\n\n## Usage\n\n```shell\n$ curl -fsLJO 'localhost:8000/print.pdf?target=https%3A%2F%2Fxcoo.jp\u0026wait_for=%23container'\n```\n\n- `target` (Required)\n  - The URL for which you want to get the screenshot.\n  - `https://xcoo.jp`\n- `wait_for` (Optional)\n  - Wait for the screenshot until the selector you specified appears on the page.\n  - `#container`\n\n## Build Requirements\n\n- Leiningen\n\n## Build Docker image\n\n```shell\n$ docker build -t xcoo/pdfshot:latest .\n$ docker-compose up -d\n```\n\n## Local execution\n\n```shell\n$ lein cljsbuild once\n$ node target/pdfshot.js\n```\n\n## License\n\nCopyright [Xcoo, Inc.][xcoo]\n\nLicensed under the [Apache License, Version 2.0][apache-license-2.0].\n\n[xcoo]: https://xcoo.jp\n[apache-license-2.0]: http://www.apache.org/licenses/LICENSE-2.0.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxcoo%2Fpdfshot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxcoo%2Fpdfshot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxcoo%2Fpdfshot/lists"}