{"id":18074153,"url":"https://github.com/bytespider/pagedjs-cli-old","last_synced_at":"2026-01-19T07:02:47.012Z","repository":{"id":42665530,"uuid":"329071816","full_name":"bytespider/pagedjs-cli-old","owner":"bytespider","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-13T22:48:38.000Z","size":7436,"stargazers_count":0,"open_issues_count":8,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T18:52:12.103Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":false,"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/bytespider.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":"2021-01-12T18:09:24.000Z","updated_at":"2023-11-28T12:35:07.000Z","dependencies_parsed_at":"2022-09-21T22:31:28.423Z","dependency_job_id":null,"html_url":"https://github.com/bytespider/pagedjs-cli-old","commit_stats":null,"previous_names":["bytespider/pagedjs-cli-old"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/bytespider/pagedjs-cli-old","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytespider%2Fpagedjs-cli-old","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytespider%2Fpagedjs-cli-old/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytespider%2Fpagedjs-cli-old/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytespider%2Fpagedjs-cli-old/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bytespider","download_url":"https://codeload.github.com/bytespider/pagedjs-cli-old/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytespider%2Fpagedjs-cli-old/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28562691,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T03:31:16.861Z","status":"ssl_error","status_checked_at":"2026-01-19T03:31:15.069Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-10-31T10:11:28.791Z","updated_at":"2026-01-19T07:02:46.997Z","avatar_url":"https://github.com/bytespider.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PagedJS PDF Renderer\n\nRender Html to PDFs using [Pagedjs](https://gitlab.pagedmedia.org/polyfills/pagedjs) and [Puppeteer](https://github.com/GoogleChrome/puppeteer).\n\n## Installation\n\n```\nnpm install -g pagedjs-cli\n```\n\n## Generating a PDF\n\n```\npagedjs-cli ./path/to/index.html -o result.pdf\n```\n\n## Options\n\n```\n-V, --version                     output the version number\n-i, --inputs [inputs]             Inputs\n-o, --output [output]             Output\n-d, --debug                       Debug\n-l, --landscape                   Landscape printing (default: false)\n-s, --page-size [size]            Print to Page Size [size]\n-w, --width [size]                Print to Page Width [width] in MM\n-h --height [size]                Print to Page Height [weight] in MM\n-t, --timeout [ms]                Set a max timeout of [ms]\n-x, --html                        output html file\n-b, --blockLocal                  Disallow access to filesystem for local files\n-r, --blockRemote                 Disallow requests to remote servers\n--allowedPath [allowedPaths]      Only allow access to given filesystem paths, repeatable. (default: [])\n--allowedDomain [allowedDomains]  Only allow access to given remote domains, repeatable (default: [])\n--outline-tags [tags]             Specifies that an outline should be generated for the resulting PDF\n                                  document. [tags] specifies which HTML tags should be considered for that\n                                  outline. \"h1,h2\" will trigger an outline with \"h1\" tags as root elements\n                                  and \"h2\" elements as their childs.\n--additional-script \u003cscript\u003e      Additional script tags which are added to the HTML document before\n                                  rendering. This is useful for adding custom pagedjs handlers. The option\n                                  can be repeated. (default: [])\n--browserEndpoint                 Use a remote Chrome server with browserWSEndpoint\n```\n\n## Hyphenation\n\nHTML can be pre-processed with soft hyphens by the [Hypher](https://github.com/bramstein/hypher) library.\n\nPass the abbreviation a language code (such as `en-us` or `de`) when calling the renderer. You can install languages beyond those included the package.json using npm.\n\n\n```\npagedjs-cli ./path/to/index.html --hyphenate en-us --output\n```\n\n\n## Development\nLink and build the JS\n```\nnpm install\nnpm link\nnpm install -g gulp\n\ngulp watch\n```\n\nTo display the output in the browser window before printing,\ninstead of outputting the file add the `--debug` flag.\n\n```\npagedjs-cli ./path/to/index.html --debug\n```\n\n## Testing\n\nInstall Mocha with `npm install -g mocha`\n\nRun the tests from the library root with the `mocha` command\n```\nmocha\n```\n\n## Docker\n\nBuild the Docker image\n\n```bash\ndocker build -t pagedmedia/pagedjs-cli .\n```\n\nRun the Docker image\n\n```bash\ndocker run -it --security-opt 'seccomp=seccomp.json' pagedmedia/pagedjs-cli bash\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbytespider%2Fpagedjs-cli-old","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbytespider%2Fpagedjs-cli-old","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbytespider%2Fpagedjs-cli-old/lists"}