{"id":20170180,"url":"https://github.com/fabrix-app/spool-pdf","last_synced_at":"2026-05-07T23:42:43.564Z","repository":{"id":95882828,"uuid":"149047058","full_name":"fabrix-app/spool-pdf","owner":"fabrix-app","description":"Spool: PDF for Fabrix","archived":false,"fork":false,"pushed_at":"2018-09-17T00:30:21.000Z","size":71,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-14T01:17:32.885Z","etag":null,"topics":["fabrix","nodejs","pdf","spool","typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/fabrix-app.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-17T00:10:14.000Z","updated_at":"2018-11-18T13:36:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"3dbc6be2-2858-41d7-a368-09d3275ffe7e","html_url":"https://github.com/fabrix-app/spool-pdf","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"fd517efd89195baa3ffd132eb9467f02b62a61c9"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabrix-app%2Fspool-pdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabrix-app%2Fspool-pdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabrix-app%2Fspool-pdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabrix-app%2Fspool-pdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabrix-app","download_url":"https://codeload.github.com/fabrix-app/spool-pdf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241605820,"owners_count":19989612,"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":["fabrix","nodejs","pdf","spool","typescript"],"created_at":"2024-11-14T01:17:36.482Z","updated_at":"2026-05-07T23:42:38.526Z","avatar_url":"https://github.com/fabrix-app.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spool-pdf\n\n[![Gitter][gitter-image]][gitter-url]\n[![NPM version][npm-image]][npm-url]\n[![Build Status][ci-image]][ci-url]\n[![Test Coverage][coverage-image]][coverage-url]\n[![Dependency Status][daviddm-image]][daviddm-url]\n[![Follow @FabrixApp on Twitter][twitter-image]][twitter-url]\n\n:package: Pdf Spool\n\n\n## Install\n```sh\n$ npm install --save @fabrix/spool-pdf\n```\n\n## Configure\n\n```js\n// config/main.ts\nimport { PdfSpool } from '@fabrix/spool-pdf'\nexport const main = {\n  spools: [\n    // ... other spools\n    PdfSpool\n  ]\n}\n```\n\n## Configuration\n\n```\n// config/pdf.ts\nexport const pdf = {\n  allowLocalFilesAccess: true,\n    printDelay: 100,\n    paperSize: {\n      format: 'Letter',\n      height: '11in',\n      width: '8.5in'\n    },\n    format: {\n      quality: 100\n    }\n}\n```\n\nFor more information about store (type and configuration) please see the pdf documentation.\n\n## Usage\n\n```js\n  this.app.pdf.htmlToPDF('\u003ch1\u003eHello World\u003c/h1\u003e')\n  .then(pdf =\u003e {\n    // Do something with your PDF\n  })\n```\n\n[npm-image]: https://img.shields.io/npm/v/@fabrix/spool-pdf.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/@fabrix/spool-pdf\n[ci-image]: https://img.shields.io/circleci/project/github/fabrix-app/spool-pdf/master.svg\n[ci-url]: https://circleci.com/gh/fabrix-app/spool-pdf/tree/master\n[daviddm-image]: http://img.shields.io/david/fabrix-app/spool-pdf.svg?style=flat-square\n[daviddm-url]: https://david-dm.org/fabrix-app/spool-pdf\n[gitter-image]: http://img.shields.io/badge/+%20GITTER-JOIN%20CHAT%20%E2%86%92-1DCE73.svg?style=flat-square\n[gitter-url]: https://gitter.im/fabrix-app/fabrix\n[twitter-image]: https://img.shields.io/twitter/follow/FabrixApp.svg?style=social\n[twitter-url]: https://twitter.com/FabrixApp\n[coverage-image]: https://img.shields.io/codeclimate/coverage/github/fabrix-app/spool-pdf.svg?style=flat-square\n[coverage-url]: https://codeclimate.com/github/fabrix-app/spool-pdf/coverage\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabrix-app%2Fspool-pdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabrix-app%2Fspool-pdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabrix-app%2Fspool-pdf/lists"}