{"_id":"@cr4zyc4t/phantom-html2pdf","_rev":"4-6dcb7a727da60d3dae7ba6240884d369","name":"@cr4zyc4t/phantom-html2pdf","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.3":{"name":"@cr4zyc4t/phantom-html2pdf","description":"A fork of phantom-html2pdf. Simple and lightweight HTML to PDF conversion using Node and PhantomJS","version":"1.0.3","forkVersion":"1.0.3","dependencies":{"async":"1.5.0","debug":"2.2.0","phantomjs":"1.9.19","tmp":"0.0.29"},"keywords":["pdf","html","converter","cr4zyc4t"],"main":"./lib/phantom-html2pdf","bin":{"phantom-html2pdf":"./bin/phantom-html2pdf"},"devDependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"license":"MIT","directories":{"lib":"lib"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"ToanVQ","email":"hunter9xbn@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/cr4zyc4t/phantom-html2pdf.git"},"bugs":{"url":"https://github.com/cr4zyc4t/phantom-html2pdf/issues"},"homepage":"https://github.com/cr4zyc4t/phantom-html2pdf#readme","gitHead":"615cb0055db392345daf10c6682b589a2327a633","_id":"@cr4zyc4t/phantom-html2pdf@1.0.3","_nodeVersion":"10.15.3","_npmVersion":"6.9.0","dist":{"integrity":"sha512-bF1h5b9fB5RnhH6Tsbdnb4nWxd+BwCCRREqhfHbg8zKm4MbRIkdZIRqYdKa2sGPdtp65LGGwDBzrdPIKZM73AA==","shasum":"4d5be6f844c0907063fd175192aa27d92580dc7f","tarball":"https://registry.npmjs.org/@cr4zyc4t/phantom-html2pdf/-/phantom-html2pdf-1.0.3.tgz","fileCount":8,"unpackedSize":12549,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcraPLCRA9TVsSAnZWagAANCIP/2MP1ZQ66n7/TvFqAfLo\nFayV3cNGoO7JDaVbziYJ36ht+RR1v1r1xdINL/TOyX1Zm+w7/1MZDsFeXgEu\npcDUfrsJLp+9DJIBr8FndlQ9IV73FVK/0JM+I7wNr5GbC1gYQQZ4JNyvECyo\nws4J4dXLc9RZJ+PDl/cpE7+yFROk8ioEDGpik7tvBoxXughKPYmg3P64AtkN\nq8JF5/qeZbKLl3k5xXE1oXOeWIhm+7BzIeKqQiToqeIwuYS83NDnbZD4FFs+\nZIk1gsrWZrg/WYMby2sRkQKe+IqxEsM2WYz+Pa6CNFOaSWX25clfS4DZHCzY\nUoBbHzqM1IoG+tkHmsW0rKpldjvW3P6FLi6m99rhSUAsBPQgNYBgzO0nJmf6\nGUSfqoGhII1mKRktvG9MA09fO22K14VmEUftwl6z6vaqB8D4RWVOQdUcJ74h\nlAnO4+gUHAUJy9P5P85wlDYj+QJ1T5l0t9imMtLLsQKD8/UQg9O1n4z4u502\nttPgm/82BJ4dDmh4/NPQ2rZKRHOxOG6tQXgsYl3KriS0ynCkdgrPKM9eR67J\n3GLiV0OQrV6ryzrZQAJyJsX5YCi+HRvFKnGdFbDXN2ZBczKLCPt/td62FXIC\nmE9WmyAe5dCxvxSz+BI0FYXTvUCJvurT2CxjCpQjIJV3yDzsmn13XwOWixI8\nxj1z\r\n=z/wf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFMScmQqxfYF+diIY0RlQyobuippVvusKqErYIHjZbdZAiEA/mB+1nPE9MfZSphtLoKyjYWpUarpAPL6QK5mfa9I8OQ="}]},"maintainers":[{"name":"vqt907","email":"hunter9xbn@gmail.com"}],"_npmUser":{"name":"vqt907","email":"hunter9xbn@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/phantom-html2pdf_1.0.3_1554883531002_0.49255557148647755"},"_hasShrinkwrap":false},"1.0.4":{"name":"@cr4zyc4t/phantom-html2pdf","description":"A fork of phantom-html2pdf. Simple and lightweight HTML to PDF conversion using Node and PhantomJS","version":"1.0.4","forkVersion":"1.0.3","dependencies":{"async":"1.5.0","debug":"2.2.0","phantomjs":"^1.9.19","tmp":"0.0.29"},"keywords":["pdf","html","converter","cr4zyc4t"],"main":"./lib/phantom-html2pdf","bin":{"phantom-html2pdf":"./bin/phantom-html2pdf"},"devDependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"license":"MIT","directories":{"lib":"lib"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"ToanVQ","email":"hunter9xbn@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/cr4zyc4t/phantom-html2pdf.git"},"bugs":{"url":"https://github.com/cr4zyc4t/phantom-html2pdf/issues"},"homepage":"https://github.com/cr4zyc4t/phantom-html2pdf#readme","gitHead":"7789b1639313a9a1a4b0ec97c175b45b8915529c","_id":"@cr4zyc4t/phantom-html2pdf@1.0.4","_nodeVersion":"10.15.3","_npmVersion":"6.10.2","dist":{"integrity":"sha512-kXnDc1574vFvqn1kq8fNP29OTePvHBZ0bAIZDBnElSV4liUiK5uNG6oiy8Jg7L8s3ZE9nj3c67aX8IL007hyyA==","shasum":"4d4e069e9d8f2724a0719988f271b1d4e2ba0dbb","tarball":"https://registry.npmjs.org/@cr4zyc4t/phantom-html2pdf/-/phantom-html2pdf-1.0.4.tgz","fileCount":8,"unpackedSize":12550,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdVS0qCRA9TVsSAnZWagAAne0P/1qi8lQnodjb9BczI7zR\nuivxgZluxpjm6Agq/yYe6uJ1AtSa7y9yLfAXvIKo9NcjEX4QJS5IfTEoF0rs\nUHmOA3+LSbJbzY1NK1mrrrsY/c9W6MHb88j2yvWrJdMuD4jaSttemeWcpXvC\n0f2tNtZZIQ9NJdmtVotdw2yoWZYRIH/rHZ61LgmgvrT+AL9G62Kbf6/f2Qkz\n8wbnwWlP1URSbYemMoSEMOu4dZQqw+4zOjBYAoX18DtBl8kTGvP8aSeISxL0\n0WpwBVD/KmmcNqpdwNq6tJGmXBdPfwU6mHqiYqgSLvXK4wR2MndDn+MpOJx9\nGUU+Sm2DMza4PcEEqplcGjuTx8ShB/gDrSCkrlIyduOBFNnskPteKPyFTfis\n4wcPj+RUgd/i18VHmuyX+x8OVZtRE1sbbXTuxHHObJHkO40GHzP+4p7CLtXG\neJRI23QT5ie7OdULiNHOP0qNB0YEJKtBCZL43izqz28bM19jX9zLVoLpWM3j\ndsc1uudPFAfCTuweV61inpPOfOEslS7PthDjCcvv/RX/91HnQRDaiFI1TAUh\n7IiMiLElRVXXPL//gubBJPVdMCohLBOFFBUpSBvLn5PXzppgNfnsD6gdu6l+\nskpPRsx8CMdMfwb1Uv8TPAiuZhCrmPXBe0Quj2aKtDjEE2nEUT5IhfQkY8d/\n5oxV\r\n=AJMQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDvUrMs4RNAuxyoUAxy5tf5cUieXVGO+Iuw5iUV2Yq45AIhAMLwsKAquc1dQA4q8G5BbXTzOncMA7u2XGRJMGVlP3Rm"}]},"maintainers":[{"email":"hunter9xbn@gmail.com","name":"vqt907"}],"_npmUser":{"name":"vqt907","email":"hunter9xbn@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/phantom-html2pdf_1.0.4_1565863210282_0.7506322132390468"},"_hasShrinkwrap":false}},"time":{"created":"2019-04-10T08:05:30.823Z","1.0.3":"2019-04-10T08:05:31.195Z","modified":"2022-04-05T01:33:55.166Z","1.0.4":"2019-08-15T10:00:10.425Z"},"maintainers":[{"email":"hunter9xbn@gmail.com","name":"vqt907"}],"description":"A fork of phantom-html2pdf. Simple and lightweight HTML to PDF conversion using Node and PhantomJS","homepage":"https://github.com/cr4zyc4t/phantom-html2pdf#readme","keywords":["pdf","html","converter","cr4zyc4t"],"repository":{"type":"git","url":"git+https://github.com/cr4zyc4t/phantom-html2pdf.git"},"author":{"name":"ToanVQ","email":"hunter9xbn@gmail.com"},"bugs":{"url":"https://github.com/cr4zyc4t/phantom-html2pdf/issues"},"license":"MIT","readme":"# phantom-html2pdf for NodeJS\n\nSimple and lightweight HTML to text conversion using Node and PhantomJS.\n\n## Installation\n\n````\nnpm install phantom-html2pdf\n````\n\n## Dependencies\n\n1. PhantomJS\n2. Async\n3. Temp\n4. Debug\n\n## Conversion API\n\nThe API exposes a single function 'convert'. Using this function, you can input a multitude of settings, which are further specified below:\n\n```` javascript\nvar pdf = require('phantom-html2pdf');\n\npdf.convert(options, function(result) {\n\n\t/* Using a buffer and callback */\n\tresult.toBuffer(function(returnedBuffer) {});\n\n\t/* Using a readable stream */\n\tvar stream = result.toStream();\n\n\t/* Using the temp file path */\n\tvar tmpPath = result.getTmpPath();\n\n\t/* Using the file writer and callback */\n\tresult.toFile(\"/path/to/file.pdf\", function() {});\n});\n````\n\n## Options\n\nCalling convert() requires an options object, which includes the following definitions:\n\n```` json\n{\n\t\"html\" : \"Path to HTML file\",\n\t\"css\" : \"Path to additional CSS file\",\n\t\"js\" : \"Path to additional JavaScript file\",\n\t\"runnings\" : \"Path to runnings file. Check further below for explanation.\",\n\t\"paperSize\" : \"Two ways to do this, see below\",\n\t\"deleteOnAction\" : true/false (Deletes the created temp file once you access it via toBuffer() or toFile())\n}\n````\n\nInstead of paths, one can also provide properly escaped source code.\n\n## Paper Size\n\nEither supply a paper format, orientation and border (this is the default)\n```` javascript\n{format: 'A4', orientation: 'portrait', border: '1cm'}\n````\nOr supply a page width, height and border.\n```` javascript\n{width: '3in', height: '2in', border: '0.5in'}\n````\n\nSee link below for accepted units and formats\n\n\n\n## Runnings File\n\nhttps://github.com/ariya/phantomjs/wiki/API-Reference-WebPage#wiki-webpage-paperSize\n\n## Known issues\n\nOn Macs the generated PDF is going to be a bitmap, however it works perfectly fine on Linux and Windows Servers.\nSo be careful when developing and testing on Macs; it's going to work in production :-)\n\n## License\n\n[MIT](LICENSE)\n","readmeFilename":"README.md"}