{"id":37870080,"url":"https://github.com/opendream/headless_pdf","last_synced_at":"2026-01-16T16:40:12.187Z","repository":{"id":136258720,"uuid":"335244316","full_name":"opendream/headless_pdf","owner":"opendream","description":"A Node.js tool that leverages Puppeteer to seamlessly convert web pages into PDFs, with options for landscape orientation and selective content hiding.","archived":false,"fork":false,"pushed_at":"2024-03-26T23:23:33.000Z","size":33,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-04-16T03:46:13.735Z","etag":null,"topics":["backend","pdf","utility"],"latest_commit_sha":null,"homepage":"","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/opendream.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-02-02T10:04:33.000Z","updated_at":"2024-04-16T03:46:13.735Z","dependencies_parsed_at":null,"dependency_job_id":"ac4d5479-311e-4449-ba90-1291db9de5e4","html_url":"https://github.com/opendream/headless_pdf","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/opendream/headless_pdf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opendream%2Fheadless_pdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opendream%2Fheadless_pdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opendream%2Fheadless_pdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opendream%2Fheadless_pdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opendream","download_url":"https://codeload.github.com/opendream/headless_pdf/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opendream%2Fheadless_pdf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28480057,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: 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":["backend","pdf","utility"],"created_at":"2026-01-16T16:40:12.108Z","updated_at":"2026-01-16T16:40:12.174Z","avatar_url":"https://github.com/opendream.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# headless_pdf\n\nA simple Node.js application that uses the Puppeteer library to generate PDFs from web pages in a headless manner.\n\n## Features\n\n- Convert any web page to a PDF.\n- Option to generate the PDF in landscape mode.\n- Hide specific elements from the PDF by adding the `print-hide` class to them.\n- Specify the filename for the downloaded PDF.\n\n## Prerequisites\n\n- Node.js\n- npm\n\n## Installation\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/opendream/headless_pdf.git\n   ```\n\n2. Navigate to the repository directory:\n   ```bash\n   cd headless_pdf\n   ```\n\n3. Install the required dependencies:\n   ```bash\n   npm install\n   ```\n\n## Usage\n\n1. Start the server:\n   ```bash\n   node index.js\n   ```\n\n2. Access the service by navigating to:\n   ```\n   http://localhost:8080/headless-pdf?url=YOUR_WEBPAGE_URL\n   ```\n\n   Optional query parameters:\n   - `landscape`: Set to `true` for landscape mode.\n   - `filename`: Specify the name for the downloaded PDF file (without the `.pdf` extension).\n\n   Example:\n   ```\n   http://localhost:8080/headless-pdf?url=https://www.example.com\u0026landscape=true\u0026filename=mydocument\n   ```\n\n## Contributing\n\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopendream%2Fheadless_pdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopendream%2Fheadless_pdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopendream%2Fheadless_pdf/lists"}