{"id":13690470,"url":"https://github.com/ovvn/dom-to-pdf","last_synced_at":"2025-12-25T01:41:28.421Z","repository":{"id":38711462,"uuid":"197249846","full_name":"ovvn/dom-to-pdf","owner":"ovvn","description":"Generates a printable paginated pdf from DOM node using HTML5 canvas and svg","archived":false,"fork":false,"pushed_at":"2024-06-14T12:27:02.000Z","size":20,"stargazers_count":147,"open_issues_count":6,"forks_count":41,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T08:46:45.161Z","etag":null,"topics":["dom","html","javascript","pdf"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ovvn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null},"funding":{"github":["ovvn"],"patreon":null,"open_collective":null,"ko_fi":"osmanmazinov","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":"https://paypal.me/omazinov"}},"created_at":"2019-07-16T18:47:29.000Z","updated_at":"2025-03-23T03:46:07.000Z","dependencies_parsed_at":"2024-01-14T19:13:33.923Z","dependency_job_id":"e9dbd722-3d4b-47e2-8caf-41bb7c024de4","html_url":"https://github.com/ovvn/dom-to-pdf","commit_stats":{"total_commits":39,"total_committers":2,"mean_commits":19.5,"dds":0.05128205128205132,"last_synced_commit":"526c9694e5692d37fcde4c9599156ce4740ddeed"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovvn%2Fdom-to-pdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovvn%2Fdom-to-pdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovvn%2Fdom-to-pdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovvn%2Fdom-to-pdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ovvn","download_url":"https://codeload.github.com/ovvn/dom-to-pdf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252030172,"owners_count":21683301,"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":["dom","html","javascript","pdf"],"created_at":"2024-08-02T17:00:19.424Z","updated_at":"2025-12-25T01:41:28.374Z","avatar_url":"https://github.com/ovvn.png","language":"JavaScript","funding_links":["https://github.com/sponsors/ovvn","https://ko-fi.com/osmanmazinov","https://paypal.me/omazinov","https://ko-fi.com/Y8Y5ZDQP'","https://www.paypal.com/cgi-bin/webscr?cmd=_donations\u0026business=N4989JZU4MV6Y\u0026item_name=Support\u0026currency_code=USD\u0026source=url'"],"categories":["JavaScript","Libraries"],"sub_categories":["JavaScript"],"readme":"# dom-to-pdf\n\ndom-to-pdf generates a printable PDF from DOM node using HTML5 canvas and svg.\n\n## Install\n\n```\nnpm install --save dom-to-pdf\n```\n\n## Usage\n```javascript\nvar domToPdf = require('dom-to-pdf');\n\nvar element = document.getElementById('test');\nvar options = {\n  filename: 'test.pdf'\n};\ndomToPdf(element, options, function(pdf) {\n  console.log('done');\n});\n```\n\n## Options\n* `filename` - string, name of resulted PDF file, default name is `generated.pdf`\n* `excludeClassNames` - array of strings, list of class names of elements to exclude from PDF, e.g. `['Loading', 'ExcludeMeFromPdf']`\n* `excludeTagNames` - array of strings, list of html tags to exclude from PDF, e.g. `['button', 'input', 'select']`\n* `overrideWidth` - number, overrides a width of a container DOM element \n* `proxyUrl` - string, e.g. `/api/proxyImage?url=`, a route in your app which renders images on your domain in order to avoid problems with CORS with the images on a DOM\n* `compression` - string, compression of the generated image, can have the values 'NONE', 'FAST', 'MEDIUM' and 'SLOW'. (default is 'NONE')\n* `scale` - number, increases an image's size before exporting to improve the image quality\n\n\n## Support\n\u003ca href='https://ko-fi.com/Y8Y5ZDQP' target='_blank'\u003e\u003cimg height='36' style='border:0px;height:36px;' src='https://az743702.vo.msecnd.net/cdn/kofi4.png?v=2' border='0' alt='Buy Me a Coffee at ko-fi.com' /\u003e\u003c/a\u003e\n\nSupport me with a coin\n\nBTC 14VroJFPkqKPUSafverhgsZJyqrzYXm3zn\n\n\u003ca href='https://www.paypal.com/cgi-bin/webscr?cmd=_donations\u0026business=N4989JZU4MV6Y\u0026item_name=Support\u0026currency_code=USD\u0026source=url' target='_blank'\u003ePaypal\u003c/a\u003e\n\n\n\u003ca href='https://money.yandex.ru/to/410012447478695' target='_blank'\u003eYandex Money\u003c/a\u003e\n\n## MIT License\nCopyright (c) 2023 Osman Mazinov\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fovvn%2Fdom-to-pdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fovvn%2Fdom-to-pdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fovvn%2Fdom-to-pdf/lists"}