{"id":18722014,"url":"https://github.com/realign/html-dom-pdf","last_synced_at":"2025-04-12T14:32:50.254Z","repository":{"id":57267363,"uuid":"203157338","full_name":"ReAlign/html-dom-pdf","owner":"ReAlign","description":"🔨 ⚙️ A javascript tool of transform html-dom to pdf, support paging Lossless.","archived":false,"fork":false,"pushed_at":"2019-08-25T12:53:17.000Z","size":194,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-26T09:03:41.762Z","etag":null,"topics":["dom-pdf","dom2pdf","dompdf","html-pdf","html2pdf","htmlpdf","lossless","paging-lossless","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/ReAlign.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-19T11:14:48.000Z","updated_at":"2023-01-06T16:08:04.000Z","dependencies_parsed_at":"2022-08-31T22:32:27.078Z","dependency_job_id":null,"html_url":"https://github.com/ReAlign/html-dom-pdf","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReAlign%2Fhtml-dom-pdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReAlign%2Fhtml-dom-pdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReAlign%2Fhtml-dom-pdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReAlign%2Fhtml-dom-pdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ReAlign","download_url":"https://codeload.github.com/ReAlign/html-dom-pdf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248581357,"owners_count":21128155,"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-pdf","dom2pdf","dompdf","html-pdf","html2pdf","htmlpdf","lossless","paging-lossless","pdf"],"created_at":"2024-11-07T13:39:21.145Z","updated_at":"2025-04-12T14:32:50.236Z","avatar_url":"https://github.com/ReAlign.png","language":"JavaScript","readme":"# html-dom-pdf\n\n[![NPM version][npm-image]][npm-url]\n\n[npm-image]: https://img.shields.io/npm/v/html-dom-pdf.svg?longCache=true\u0026style=for-the-badge\n[npm-url]: https://www.npmjs.com/package/html-dom-pdf\n\n\u003e A javascript tool of transform html-dom-pdf-dom to pdf, support paging Lossless.\n\n## Usage\n\n### install\n\n```bash\n# install\n$ npm html-dom-pdf -S\n```\n\n### project\n\n```js\nimport HtmlDomPdf from 'html-dom-pdf';\n\nnew HtmlDomPdf(options).then(() =\u003e {\n    // do something.\n});\n\nconst options = {}; // 👇\n```\n\n| Object  |   Prop      |  Type  | Default |   Note            |\n| ------- | ----------- | ------ | ------- | ----------------- |\n| options. | selector    | String | ''      | [🔗 CSS Selectors](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors)  |\n|         | title       | String | 'pdf'   | filename of pdf   |\n|         | marginTB    | Number | 0       | margin of `top` \u0026 `bottom` |\n|         | marginLR    | Number | 0       | margin of `left` \u0026 `right` |\n|         | offsetLimit | Number | 40      | \u003cdiv style=\"width: 100px;\"\u003eMaximum offset: Get effective content when paging, trying to intercept upwards, this is the `maximum offset`\u003c/div\u003e |\n\n## Releases\n\n* 2019-08-19\n    * 0.0.1","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealign%2Fhtml-dom-pdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frealign%2Fhtml-dom-pdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealign%2Fhtml-dom-pdf/lists"}