{"_id":"html-to-pdf","_rev":"42-8f1a77d79441b46d93f235ab5d3d184e","name":"html-to-pdf","description":"A Node HTML to PDF converter using a the Java flyingsaucer library.","dist-tags":{"latest":"0.1.11"},"versions":{"0.1.2":{"name":"html-to-pdf","version":"0.1.2","description":"A Node HTML to PDF converter using a the Java flyingsaucer library.","main":"html-to-pdf.js","directories":{"test":"test","java-src":"java-src"},"repository":{"type":"git","url":"https://github.com/ChaosEvoker/html-to-pdf.git"},"keywords":["node","pdf","html","converter","renderer","java","javascript"],"author":{"name":"Phillip Sipe"},"license":"MIT","bugs":{"url":"https://github.com/ChaosEvoker/html-to-pdf/issues"},"homepage":"https://github.com/ChaosEvoker/html-to-pdf","_id":"html-to-pdf@0.1.2","dist":{"shasum":"8be39b3564124d5687ee7f6a3226083218dd3750","tarball":"https://registry.npmjs.org/html-to-pdf/-/html-to-pdf-0.1.2.tgz","integrity":"sha512-B9RPmyErwiRwwij4cy+v3Sm4PAKseBvFOmtkIcivP620kpxmjnpHEo/lWN7a9ixiTJfSngZ+gD23cRYHxAS9TA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDS23IOBRnYmp3MFzp1UKV+2IBXLBXFJRgvaSR6fL9TXAIhAOPPL+KMx88HWr9X+Ti889aaj3O1VU/B2NqdUHl/g+hx"}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"chaosevoker","email":"chaosevoker@gmail.com"},"maintainers":[{"name":"chaosevoker","email":"chaosevoker@gmail.com"}]},"0.1.3":{"name":"html-to-pdf","version":"0.1.3","description":"A Node HTML to PDF converter using a the Java flyingsaucer library.","main":"html-to-pdf.js","directories":{"test":"test","java-src":"java-src"},"repository":{"type":"git","url":"https://github.com/ChaosEvoker/html-to-pdf.git"},"keywords":["node","pdf","html","converter","renderer","java","javascript"],"author":{"name":"Phillip Sipe"},"license":"MIT","bugs":{"url":"https://github.com/ChaosEvoker/html-to-pdf/issues"},"homepage":"https://github.com/ChaosEvoker/html-to-pdf","_id":"html-to-pdf@0.1.3","dist":{"shasum":"3bd37d24c3e69e6ea61b1ce1566b729efe95e4ee","tarball":"https://registry.npmjs.org/html-to-pdf/-/html-to-pdf-0.1.3.tgz","integrity":"sha512-yB42RFbVjILjCJpzjtL+t76G+niswaRLlGQmMD6Uuk5cBBGVbTamIfG4Og0uRw5eV9OCn9YQ5Xry+z+26mlZog==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDiUROVgzECtepz8I5Q0zHf4mttcRCTYgCfMXOLoF0yhQIhALfRM2ZeMGCkYELGJ4TEbljzZER0i5vUzrX8JLCD6Vci"}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"chaosevoker","email":"chaosevoker@gmail.com"},"maintainers":[{"name":"chaosevoker","email":"chaosevoker@gmail.com"}]},"0.1.0":{"name":"html-to-pdf","version":"0.1.0","description":"A Node HTML to PDF converter using a the Java flyingsaucer library.","main":"html-to-pdf.js","directories":{"test":"test","java-src":"java-src"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/ChaosEvoker/html-to-pdf.git"},"keywords":["node","pdf","html","converter","renderer","java","javascript"],"author":{"name":"Phillip Sipe"},"license":"MIT","bugs":{"url":"https://github.com/ChaosEvoker/html-to-pdf/issues"},"homepage":"https://github.com/ChaosEvoker/html-to-pdf","_id":"html-to-pdf@0.1.0","dist":{"shasum":"9dff6b6cbc3d5cb7402d9cdae618eb850b78d305","tarball":"https://registry.npmjs.org/html-to-pdf/-/html-to-pdf-0.1.0.tgz","integrity":"sha512-KUwI6xdf7+Y1XLQx5E5RupXH8yCz6Cu/8JLu4HJdrSCEbVH7BQQGwX/9K/YKA96um7vH87gRunKQtJt6CDZsbw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC7vBV3aV0Ubt/+Hd+mxBvaoEIUVTzgA2o0B+2sF4WD6AiEA4YZRFdNCtLjQPvNZ+pjF+8XhBm0hnHf0SVTwgCYzhR8="}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"chaosevoker","email":"chaosevoker@gmail.com"},"maintainers":[{"name":"chaosevoker","email":"chaosevoker@gmail.com"}]},"0.1.4":{"name":"html-to-pdf","version":"0.1.4","description":"A Node HTML to PDF converter using a the Java flyingsaucer library.","main":"html-to-pdf.js","directories":{"test":"test","java-src":"java-src"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/ChaosEvoker/html-to-pdf.git"},"keywords":["node","pdf","html","converter","renderer","java","javascript"],"author":{"name":"Phillip Sipe"},"license":"MIT","bugs":{"url":"https://github.com/ChaosEvoker/html-to-pdf/issues"},"homepage":"https://github.com/ChaosEvoker/html-to-pdf","_id":"html-to-pdf@0.1.4","dist":{"shasum":"bd6acf7446ee66788231d744e3d86ca3acf16dc9","tarball":"https://registry.npmjs.org/html-to-pdf/-/html-to-pdf-0.1.4.tgz","integrity":"sha512-PXrErFDPbgVU22hE047PNRIKktfC0eNJYscw7oKo1WIq9Ft4yWkXuwHhrxHfPbTakkkSEZa7kTVM9D4QCu+EWg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICedyp3DJ/bw6CgvsbFnwMexEeD2dzPYXaXMihalcHbfAiAghCX4n93+1X0pO+pWcLZToyAw7gKraPwtSgo5kZse9w=="}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"chaosevoker","email":"chaosevoker@gmail.com"},"maintainers":[{"name":"chaosevoker","email":"chaosevoker@gmail.com"}]},"0.1.5":{"name":"html-to-pdf","version":"0.1.5","description":"A Node HTML to PDF converter using a the Java flyingsaucer library.","main":"html-to-pdf.js","directories":{"test":"test","java-src":"java-src"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/ChaosEvoker/html-to-pdf.git"},"keywords":["node","pdf","html","converter","renderer","java","javascript"],"author":{"name":"Phillip Sipe"},"license":"MIT","bugs":{"url":"https://github.com/ChaosEvoker/html-to-pdf/issues"},"homepage":"https://github.com/ChaosEvoker/html-to-pdf","_id":"html-to-pdf@0.1.5","dist":{"shasum":"fc122d2bf1734bae466e88429b55f0a0d6758849","tarball":"https://registry.npmjs.org/html-to-pdf/-/html-to-pdf-0.1.5.tgz","integrity":"sha512-/Gw80x40qt8OKMUPX9wRDb7aFEt2svPVsUUUn9hEfEJioQGj/TD3O2AkGJk55jaV/z+IxZxYgqZ29QfLVZibVg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDp4N0Y081rNHAXTqxnCTUUUnqb8HHPb8oI2oMwmz03yAIhAIBoajDLTGuQqKD/IcI1E4G0xqjiYwQWAgJ9sg7Sg8fB"}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"chaosevoker","email":"chaosevoker@gmail.com"},"maintainers":[{"name":"chaosevoker","email":"chaosevoker@gmail.com"}]},"0.1.6":{"name":"html-to-pdf","version":"0.1.6","description":"A Node HTML to PDF converter using a the Java flyingsaucer library.","main":"html-to-pdf.js","directories":{"test":"test","java-src":"java-src"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/ChaosEvoker/html-to-pdf.git"},"keywords":["node","pdf","html","converter","renderer","java","javascript"],"author":{"name":"Phillip Sipe"},"license":"MIT","bugs":{"url":"https://github.com/ChaosEvoker/html-to-pdf/issues"},"homepage":"https://github.com/ChaosEvoker/html-to-pdf","_id":"html-to-pdf@0.1.6","dist":{"shasum":"3c50eb043408c0fc8ada26a92b3afce13597dbd2","tarball":"https://registry.npmjs.org/html-to-pdf/-/html-to-pdf-0.1.6.tgz","integrity":"sha512-MDKBm64tX6BpiofoXXpMmYZoVCVS+KurIwD14piwB/Ba+zzsE0APM5kPidosxW/dmBhdYVxv6ShFg4iEnN4jmw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCNokCR9JFP4GDII8xHjYJig/XqcSLv3Vu+QgOyt4qdxAIhAPTnjzpumaJuu/5Kj2f+fbCKkSimUoCy0CNyzeqq/GuF"}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"chaosevoker","email":"chaosevoker@gmail.com"},"maintainers":[{"name":"chaosevoker","email":"chaosevoker@gmail.com"}]},"0.1.7":{"name":"html-to-pdf","version":"0.1.7","description":"A Node HTML to PDF converter using a the Java flyingsaucer library.","main":"html-to-pdf.js","directories":{"test":"test","java-src":"java-src"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/ChaosEvoker/html-to-pdf.git"},"keywords":["node","pdf","html","converter","renderer","java","javascript"],"author":{"name":"Phillip Sipe"},"license":"MIT","bugs":{"url":"https://github.com/ChaosEvoker/html-to-pdf/issues"},"homepage":"https://github.com/ChaosEvoker/html-to-pdf","_id":"html-to-pdf@0.1.7","dist":{"shasum":"066b82a35e82f123685a6d56c5198e4f5daef2e3","tarball":"https://registry.npmjs.org/html-to-pdf/-/html-to-pdf-0.1.7.tgz","integrity":"sha512-7R3AYhC3EVx3yN720kqBzWfRcSeGqGhzv0bfRqqvf2PyS0+xxD0z285gGDmyFzz9+7Vgn8S9f1CK5F37Pn1+jQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD/MpnI6WKwjmgvrsoL24e+OSgu5kFjYVuEFN1BdGwpNQIgNEyXUgmKjZSkFQ7yFqrOlvEDrAXJ9j5C/k0rF8ZGiJw="}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"chaosevoker","email":"chaosevoker@gmail.com"},"maintainers":[{"name":"chaosevoker","email":"chaosevoker@gmail.com"}]},"0.1.8":{"name":"html-to-pdf","version":"0.1.8","description":"A Node HTML to PDF converter using a the Java flyingsaucer library.","main":"html-to-pdf.js","directories":{"test":"test","java-src":"java-src"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/ChaosEvoker/html-to-pdf.git"},"keywords":["node","pdf","html","converter","renderer","java","javascript"],"author":{"name":"Phillip Sipe"},"license":"MIT","bugs":{"url":"https://github.com/ChaosEvoker/html-to-pdf/issues"},"homepage":"https://github.com/ChaosEvoker/html-to-pdf","_id":"html-to-pdf@0.1.8","dist":{"shasum":"2c8b9e1d369d9ba1ab0c1c56432116e8cc9b08ef","tarball":"https://registry.npmjs.org/html-to-pdf/-/html-to-pdf-0.1.8.tgz","integrity":"sha512-Jo+ItcOoJeZ+BCnxlxCpZRDBLtdL3ROpniAXeMfSTdKTDydGEqbAg9PnDjs5WeWomDSKyyRMQcT6Z3KD4aADWA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHrdwS1wsaURfHFQYjtO8YiTTkTBZN+QESluz4VwoFtAAiBslx/2c26fM7oPgFKq5UgL7ymj5su4g+ciKHMS6geTQA=="}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"chaosevoker","email":"chaosevoker@gmail.com"},"maintainers":[{"name":"chaosevoker","email":"chaosevoker@gmail.com"}]},"0.1.9":{"name":"html-to-pdf","version":"0.1.9","description":"A Node HTML to PDF converter using a the Java flyingsaucer library.","main":"html-to-pdf.js","directories":{"test":"test","java-src":"java-src"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/ChaosEvoker/html-to-pdf.git"},"keywords":["node","pdf","html","converter","renderer","java","javascript"],"author":{"name":"Phillip Sipe"},"license":"MIT","bugs":{"url":"https://github.com/ChaosEvoker/html-to-pdf/issues"},"homepage":"https://github.com/ChaosEvoker/html-to-pdf","_id":"html-to-pdf@0.1.9","dist":{"shasum":"b4c7bfef5daafd3b92bffec073412d8f4257b071","tarball":"https://registry.npmjs.org/html-to-pdf/-/html-to-pdf-0.1.9.tgz","integrity":"sha512-w/TmtFlQdAFfTnpXQ8dJjxIA7uOtN30LLcoVSdQb2NnEsy780VH3Pg906Eq9Iu9xDkrzNUD7rOVADaRJhjZytA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFmgYyDQROsOea1zrKwpDWJ171s/+3X5GmDTX515fAj+AiEAqMpSfzFFq+UXOxLZOygrJbaXczdI3hWrMCYhEdAtoH8="}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"chaosevoker","email":"chaosevoker@gmail.com"},"maintainers":[{"name":"chaosevoker","email":"chaosevoker@gmail.com"}]},"0.1.10":{"name":"html-to-pdf","version":"0.1.10","description":"A Node HTML to PDF converter using a the Java flyingsaucer library.","main":"html-to-pdf.js","directories":{"test":"test","java-src":"java-src"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/ChaosEvoker/html-to-pdf.git"},"keywords":["node","pdf","html","converter","renderer","java","javascript"],"author":{"name":"Phillip Sipe"},"license":"MIT","bugs":{"url":"https://github.com/ChaosEvoker/html-to-pdf/issues"},"homepage":"https://github.com/ChaosEvoker/html-to-pdf","_id":"html-to-pdf@0.1.10","dist":{"shasum":"a8bd9b23efc6a4ac0ed5a756a30a4858141d2417","tarball":"https://registry.npmjs.org/html-to-pdf/-/html-to-pdf-0.1.10.tgz","integrity":"sha512-pA+njc9JjuW2DaivHclHbcCioU2Xz7SKHZolXJeo/pi9zZQ07fATIEHB5wGqwkqgdH5y2OVyq8hqek7KhQOYTg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCk+HsF0RcfT1WBcdNejYUFbrH1FlIsYX98RbRX9Ryt4QIhAM12/6sGPWA56gj6ctQIqnpVEzhSZ4nRMHOJZuU1TJ2k"}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"chaosevoker","email":"chaosevoker@gmail.com"},"maintainers":[{"name":"chaosevoker","email":"chaosevoker@gmail.com"}]},"0.1.11":{"name":"html-to-pdf","version":"0.1.11","description":"A Node HTML to PDF converter using a the Java flyingsaucer library.","main":"html-to-pdf.js","directories":{"test":"test","java-src":"java-src"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/ChaosEvoker/html-to-pdf.git"},"keywords":["node","pdf","html","converter","renderer","java","javascript"],"author":{"name":"Phillip Sipe"},"license":"MIT","bugs":{"url":"https://github.com/ChaosEvoker/html-to-pdf/issues"},"homepage":"https://github.com/ChaosEvoker/html-to-pdf","dependencies":{"node-uuid":"^1.4.1"},"_id":"html-to-pdf@0.1.11","dist":{"shasum":"21820abcac8d25c75a06aa715f526ca0cdee10c5","tarball":"https://registry.npmjs.org/html-to-pdf/-/html-to-pdf-0.1.11.tgz","integrity":"sha512-xuDOJp1p1a3dJqJeXAqtYDdfuAMoFQZVEHuXf1kTTDgA9yvVSV5CBmdt0Klq7/RWkPNxlgvyeoJIWi6BJsB5vA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDEMTtKDG6YL5UZdEB6PCy6hLgpozI1+IpQCudVVdMeHAIgR0X6bfmpPOyVhq7Z+lSCWgIO9I0ux3mjhRNRAn1Xt/Y="}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"chaosevoker","email":"chaosevoker@gmail.com"},"maintainers":[{"name":"chaosevoker","email":"chaosevoker@gmail.com"}]}},"readme":"html-to-pdf\n===========\n\nA Node wrapper around a Java HTML to PDF converter to allow users to make HTML templates for automated generation of PDFs. While often in Node this is achieved through phantomjs, for larger PDF reports each report being a large image can make the file very large very quickly. This aims to fix that problem by using the Java library flyingsaucer to do the heavy lifting and providing a Node wrapper around it for ease of use with web applications.\n\n## Installation ##\nTo install html-to-pdf simply use NPM:\n```sh\nnpm install html-to-pdf\n```\n## How To Use html-to-pdf ##\nTo use html-to-pdf in your Node application, just require it:\n```js\nvar htmlToPdf = require('html-to-pdf');\n```\n### HTML File Conversion Example ###\nYou can use `convertHTMLFile` to convert HTML files to PDFs. Simply provide a path to a source HTML file and a path to a destination PDF file for conversion.\n```js\nhtmlToPdf.convertHTMLFile('path/to/source.html', 'path/to/destination.pdf',\n    function (error, success) {\n       if (error) {\n            console.log('Oh noes! Errorz!');\n            console.log(error);\n        } else {\n            console.log('Woot! Success!');\n            console.log(success);\n        }\n    }\n);\n```\n### HTML String Conversion Example ###\nYou can use `convertHTMLString` to turn a string of HTML into a PDF file. Simply pass in a string of HTML and a path to a destination PDF file for conversion. This is useful for using other templating languages (like Jade or Mustache) where you can convert the template into HTML and then use this to convert it to a PDF.\n```js\nvar html = ...; //Some HTML String from code above\n\nhtmlToPdf.convertHTMLString(html, 'path/to/destination.pdf',\n    function (error, success) {\n        if (error) {\n            console.log('Oh noes! Errorz!');\n            console.log(error);\n        } else {\n            console.log('Woot! Success!');\n            console.log(success);\n        }\n    }\n);\n```\n### Debug Mode ###\nIf you want to see the output you can set debug mode to true to see the output of the PDF Renderer (debug is false by default):\n```js\nhtmlToPdf.setDebug(true);\n```\n\n### Encoding Settings ###\nIf using a particular encoding type is important to getting the output you want, you can set the encoding types for both the input and output:\n```js\nhtmlToPdf.setInputEncoding('UTF-8');\nhtmlToPdf.setOutputEncoding('UTF-8');\n```\nThanks to bplaa-yai for this feature!\n\n## Heads Up ##\nhtml-to-pdf uses a Java process in the background. That means you will need Java installed to use it. Additionally, the Java process utilizes a library called flyingsaucer:\n\nhttps://github.com/flyingsaucerproject/flyingsaucer\n\nFlyingsaucer has some contraints on CSS styling and some extra styling features to define PDF parameters. html-to-pdf also uses these features by extension. Other than these two contraints, html-to-pdf is very lightweight.\n\nAlso, html-to-pdf creates a temporary file while converting. While it will clean up after itself, this file creation/deletion can trigger things like [forever](https://github.com/nodejitsu/forever) to restart the server. Adding the temp file to the ignore list should prevent this from happening.\n\n## Thanks ##\nIf you decide to use html-to-pdf, thanks for the support! Let me know if you run into any issues or have any ideas!\n\n## License ##\nhtml-to-pdf uses the MIT license. Feel free to use it anywhere for anything!\n","maintainers":[{"name":"chaosevoker","email":"chaosevoker@gmail.com"}],"time":{"modified":"2022-06-18T21:58:18.780Z","created":"2014-03-25T16:52:34.159Z","0.1.2":"2014-03-25T18:34:00.669Z","0.1.3":"2014-03-25T18:45:37.873Z","0.1.0":"2014-03-25T18:54:59.149Z","0.1.4":"2014-03-25T18:56:07.439Z","0.1.5":"2014-03-25T18:59:20.469Z","0.1.6":"2014-03-25T20:12:06.445Z","0.1.7":"2014-03-26T15:24:31.847Z","0.1.8":"2014-06-18T15:15:46.159Z","0.1.9":"2014-07-25T15:22:42.708Z","0.1.10":"2014-08-08T14:46:57.269Z","0.1.11":"2014-08-08T15:00:51.558Z"},"readmeFilename":"README.md","homepage":"https://github.com/ChaosEvoker/html-to-pdf","keywords":["node","pdf","html","converter","renderer","java","javascript"],"repository":{"type":"git","url":"https://github.com/ChaosEvoker/html-to-pdf.git"},"author":{"name":"Phillip Sipe"},"bugs":{"url":"https://github.com/ChaosEvoker/html-to-pdf/issues"},"license":"MIT","users":{"fattenap":true,"gotmorris":true,"akarsh":true,"antoniobrandao":true,"fabian.moron.zirfas":true,"rbecheras":true,"ninozhang":true,"frenchbread":true,"koutak":true,"jirqoadai":true}}