{"id":15463777,"url":"https://github.com/vigzmv/micro-pdf","last_synced_at":"2026-02-01T02:02:59.255Z","repository":{"id":42959017,"uuid":"226695956","full_name":"vigzmv/micro-pdf","owner":"vigzmv","description":"HTML in PDF out. Node Micro-service to convert HTML into PDFs :page_facing_up:","archived":false,"fork":false,"pushed_at":"2022-03-25T23:07:35.000Z","size":24,"stargazers_count":4,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-17T08:07:15.596Z","etag":null,"topics":["microservice","pdf","pupeteer"],"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/vigzmv.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":"2019-12-08T16:20:41.000Z","updated_at":"2020-09-20T14:46:06.000Z","dependencies_parsed_at":"2022-08-23T14:50:34.056Z","dependency_job_id":null,"html_url":"https://github.com/vigzmv/micro-pdf","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vigzmv/micro-pdf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vigzmv%2Fmicro-pdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vigzmv%2Fmicro-pdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vigzmv%2Fmicro-pdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vigzmv%2Fmicro-pdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vigzmv","download_url":"https://codeload.github.com/vigzmv/micro-pdf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vigzmv%2Fmicro-pdf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28964429,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T01:25:30.373Z","status":"online","status_checked_at":"2026-02-01T02:00:08.102Z","response_time":56,"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":["microservice","pdf","pupeteer"],"created_at":"2024-10-02T00:23:43.010Z","updated_at":"2026-02-01T02:02:59.241Z","avatar_url":"https://github.com/vigzmv.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# micro-pdf\n\nNode Micro-service to convert HTML into PDFs :page_facing_up:\n\nUses [Puppeteer](https://github.com/puppeteer/puppeteer) to render the page with a real chrome headless browser and prints it to PDF. Uses real chrome browser so what you see on your browser is what you get. This makes development much easier.\n\n[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/vigzmv/micro-pdf)\n\n## Server Side\n\nCan be hosted on any provider with node runtime support.\n\n```sh\nnpm install\nnpm run start\n```\n\n## Client Side\n\nMake a post request with `{ html : `YOUR_HTML` }` and the response will be the PDF document\n\n### Example:\n\n```js\nfetch(\"http://localhost:3000\", {\n  method: \"POST\",\n  body: JSON.stringify({\n    html: \"\u003ch1\u003eHello I am a PDF\u003c/h1\u003e\",\n  }),\n})\n  .then((response) =\u003e response.blob())\n  .then((blob) =\u003e {\n    var url = window.URL.createObjectURL(blob);\n    var a = document.createElement(\"a\");\n    a.href = url;\n    a.download = \"example.pdf\"; // You can set the name programmatically\n    document.body.appendChild(a); // we need to append the element to the dom -\u003e otherwise it will not work in firefox\n    a.click();\n    a.remove(); //afterwards we remove the element\n  });\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvigzmv%2Fmicro-pdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvigzmv%2Fmicro-pdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvigzmv%2Fmicro-pdf/lists"}