{"id":18812563,"url":"https://github.com/jsreport/toner-wkhtmltopdf","last_synced_at":"2025-04-13T21:24:45.338Z","repository":{"id":32773205,"uuid":"36364828","full_name":"jsreport/toner-wkhtmltopdf","owner":"jsreport","description":"Toner recipe for printing html into pdf using wkhtmltopdf","archived":false,"fork":false,"pushed_at":"2016-01-09T08:53:58.000Z","size":7,"stargazers_count":3,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-27T11:43:35.288Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://jsreport.net","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/jsreport.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":"2015-05-27T12:17:42.000Z","updated_at":"2015-10-02T13:52:48.000Z","dependencies_parsed_at":"2022-09-19T04:01:40.705Z","dependency_job_id":null,"html_url":"https://github.com/jsreport/toner-wkhtmltopdf","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsreport%2Ftoner-wkhtmltopdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsreport%2Ftoner-wkhtmltopdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsreport%2Ftoner-wkhtmltopdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsreport%2Ftoner-wkhtmltopdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsreport","download_url":"https://codeload.github.com/jsreport/toner-wkhtmltopdf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248312196,"owners_count":21082637,"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":[],"created_at":"2024-11-07T23:34:07.215Z","updated_at":"2025-04-13T21:24:45.281Z","avatar_url":"https://github.com/jsreport.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#toner-wkhtmltopdf\n\n\n[![Build Status](https://travis-ci.org/jsreport/toner-wkhtmltopdf.png?branch=master)](https://travis-ci.org/jsreport/toner-wkhtmltopdf)\n\n**[Toner](https://github.com/jsreport/toner) recipe for printing html into pdf using [wkhtmltopdf](http://wkhtmltopdf.org/)**\n\n```bash\nnpm install toner-wkhtmltopdf\n```\n\n```js\ntoner.recipe(\"wkhtmltopdf\", require(\"toner-wkhtmltopdf\")();\n\ntoner.render({\n\ttemplate: {\n\t\tcontent: \"fooo\",\n\t\tengine: \"jsrender\",\n\t\twkhtmltopdf: {\n\t\t\theader: \"{{:name}}\"\n\t\t}\t\t\n\t},\n\tdata : {\n\t\tname: \"Jan Blaha\"\n\t}\n});\n```\n\n##Options\nOptions passed to `template.wkhtmltopdf`  are passed to the wkhtmltopdf binary. See its [docs](http://wkhtmltopdf.org/usage/wkhtmltopdf.txt) for details.  Currently supported options are:\n\n- orientation\n- header\n- footer\n- headerHeight\n- footerHeight\n- marginBottom\n- marginLeft\n- marginRight\n- marginTop\n- pageSize\n- pageHeight\n- pageWidth\n- toc\n- tocHeaderText\n- tocLevelIndentation\n- tocTextSizeShrink\n- title\n\n\n\n##Troubleshooting installation\nSee https://github.com/pofider/node-wkhtmltopdf-installer","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsreport%2Ftoner-wkhtmltopdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsreport%2Ftoner-wkhtmltopdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsreport%2Ftoner-wkhtmltopdf/lists"}