{"_id":"@h1dd3nsn1p3r/pdf-invoice","_rev":"15-1e93956ddfacabe8aa3c0fd4eb659cb4","name":"@h1dd3nsn1p3r/pdf-invoice","dist-tags":{"latest":"1.0.15"},"versions":{"1.0.0":{"name":"@h1dd3nsn1p3r/pdf-invoice","version":"1.0.0","keywords":["pdf","invoice","estimate","receipt","generator","nodejs","pdfmake"],"author":{"name":"h1dd3nSn1p3r"},"license":"MIT","_id":"@h1dd3nsn1p3r/pdf-invoice@1.0.0","maintainers":[{"name":"h1dd3nsn1p3r","email":"struggleage@gmail.com"}],"dist":{"shasum":"6ef80d39b092f7eb8ad429033e79137ac4fbd38d","tarball":"https://registry.npmjs.org/@h1dd3nsn1p3r/pdf-invoice/-/pdf-invoice-1.0.0.tgz","fileCount":22,"integrity":"sha512-ZMxEO+T3Qj3hyYlCANdZaIq29nzFcqpaTDixD49fJN5utt7jMCtwa0hyHjzceayjB9Vv9bpQ+pLsLS9hXJ7IFg==","signatures":[{"sig":"MEQCICkqyDarSy0Mgq7VKjldOJuFcOhSwsJSaxGARek7Q/D4AiBXvE//xlXVDJXzcNB3FHFs4EQWudQdTexojsxhWsCdpA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":115022},"main":"./build/index.js","types":"./build/index.d.ts","module":"./build/index.mjs","gitHead":"738058050af250e217679b4fb28b59002435dd70","scripts":{"dev":"tsup ./src --watch","build":"tsup ./src"},"_npmUser":{"name":"h1dd3nsn1p3r","email":"struggleage@gmail.com"},"_npmVersion":"8.19.2","description":"Simple yet powerful node JS library that generates PDF invoice on the fly.","directories":{},"_nodeVersion":"18.12.1","dependencies":{"pdfmake":"^0.2.8"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","ts-node":"^10.9.2","typescript":"^5.3.3","@types/node":"^20.10.5","@types/pdfmake":"^0.2.8"},"_npmOperationalInternal":{"tmp":"tmp/pdf-invoice_1.0.0_1704261760271_0.19097300522579808","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@h1dd3nsn1p3r/pdf-invoice","version":"1.0.1","keywords":["pdf","invoice","estimate","receipt","generator","nodejs","pdfmake"],"author":{"name":"h1dd3nSn1p3r"},"license":"MIT","_id":"@h1dd3nsn1p3r/pdf-invoice@1.0.1","maintainers":[{"name":"h1dd3nsn1p3r","email":"struggleage@gmail.com"}],"dist":{"shasum":"075a21943f4882cb5f553bbe0d8c1ab3e15743f1","tarball":"https://registry.npmjs.org/@h1dd3nsn1p3r/pdf-invoice/-/pdf-invoice-1.0.1.tgz","fileCount":22,"integrity":"sha512-oIlsmx/FBCcwVhaNOWfoBtUCDDBKS+2deduIi9lr/DwpVsRd+xDj6Zf1k6RJf7EEj/L6bn6eeUt7GYvk9docKA==","signatures":[{"sig":"MEQCIDAKRiaBZS20MVIaq1p1rgDo/0XNuc8uLHPub5nPD8C4AiAOIiFiACGltz0B4xZ9YhLNxPSM+ZTiDwgyZ3d7qSCKXg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":119166},"main":"./build/index.js","types":"./build/index.d.ts","module":"./build/index.mjs","gitHead":"78e4cee883640dc8d1a9d5ff0107ade39fdce2e0","scripts":{"dev":"tsup ./src --watch","build":"tsup ./src"},"_npmUser":{"name":"h1dd3nsn1p3r","email":"struggleage@gmail.com"},"_npmVersion":"8.19.2","description":"Simple yet powerful node JS library that generates PDF invoice on the fly.","directories":{},"_nodeVersion":"18.12.1","dependencies":{"pdfmake":"^0.2.8"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","ts-node":"^10.9.2","typescript":"^5.3.3","@types/node":"^20.10.5","@types/pdfmake":"^0.2.8"},"_npmOperationalInternal":{"tmp":"tmp/pdf-invoice_1.0.1_1704266109394_0.4258425761131064","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@h1dd3nsn1p3r/pdf-invoice","version":"1.0.2","keywords":["pdf","invoice","estimate","receipt","generator","nodejs","pdfmake"],"author":{"name":"h1dd3nsn1p3r"},"license":"MIT","_id":"@h1dd3nsn1p3r/pdf-invoice@1.0.2","maintainers":[{"name":"h1dd3nsn1p3r","email":"struggleage@gmail.com"}],"homepage":"https://h1dd3nsn1p3r/pdf-invoice","bugs":{"url":"https://github.com/h1dd3nsn1p3r/pdf-invoice/issues"},"dist":{"shasum":"7c8010f2e5b1f2930790afb6a38d3a10e2d8aad1","tarball":"https://registry.npmjs.org/@h1dd3nsn1p3r/pdf-invoice/-/pdf-invoice-1.0.2.tgz","fileCount":22,"integrity":"sha512-cilW5LTZEfkA+yHiefrdhB9ANKpkuUN0WWtaj6AhwTQiBtk1GTc9faRiy9NgKNgtAz00SKpbicGqNYwMT3OwJQ==","signatures":[{"sig":"MEYCIQDsvkncKXrWDO/cRK37k0/eOeI11OQPRKdq5dqmvD4MOwIhAKtrAXQbx+VCp/pwriLvKUg0a984vILKcWyHKIZVKy/K","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":119538},"main":"./build/index.js","types":"./build/index.d.ts","module":"./build/index.mjs","gitHead":"2c0507ed2037d9a34bd125ff8328cd398ec890af","scripts":{"dev":"tsup ./src --watch","build":"tsup ./src"},"_npmUser":{"name":"h1dd3nsn1p3r","email":"struggleage@gmail.com"},"repository":{"url":"git+ssh://git@github.com/h1dd3nsn1p3r/pdf-invoice.git","type":"git"},"_npmVersion":"8.19.2","description":"Simple yet powerful node JS library that generates PDF invoice on the fly.","directories":{},"_nodeVersion":"18.12.1","dependencies":{"pdfmake":"^0.2.8"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","ts-node":"^10.9.2","typescript":"^5.3.3","@types/node":"^20.10.5","@types/pdfmake":"^0.2.8"},"_npmOperationalInternal":{"tmp":"tmp/pdf-invoice_1.0.2_1704280394115_0.7178726028231621","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@h1dd3nsn1p3r/pdf-invoice","version":"1.0.3","keywords":["pdf","invoice","estimate","receipt","generator","nodejs","pdfmake"],"author":{"name":"h1dd3nsn1p3r"},"license":"MIT","_id":"@h1dd3nsn1p3r/pdf-invoice@1.0.3","maintainers":[{"name":"h1dd3nsn1p3r","email":"struggleage@gmail.com"}],"homepage":"https://github.com/h1dd3nsn1p3r/pdf-invoice","bugs":{"url":"https://github.com/h1dd3nsn1p3r/pdf-invoice/issues"},"dist":{"shasum":"2d39a8ae51a90860a935a0291f58f3f4112fb2dc","tarball":"https://registry.npmjs.org/@h1dd3nsn1p3r/pdf-invoice/-/pdf-invoice-1.0.3.tgz","fileCount":22,"integrity":"sha512-c0yNCh7yhDyQ8/+QHc12RwpexF5rIvOJrsiBySA9qbu1XS6T0CRV8koKN1F5vWidk+m9L61jvNg0cZIJbNLzQg==","signatures":[{"sig":"MEUCIQC4KZrhubNkoWGCGEu1CNd5y0UqnArMvmh4uoQqgUqkIgIgFKLrvNGPDo2S/PVcv3JRURiBrlD3z+jKA7wSvYSpXx4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":119626},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","gitHead":"b6a81be4afff6baa25a4e59c77eebc2270e0bd96","scripts":{"dev":"tsup ./src --watch","build":"tsup ./src"},"_npmUser":{"name":"h1dd3nsn1p3r","email":"struggleage@gmail.com"},"repository":{"url":"git+ssh://git@github.com/h1dd3nsn1p3r/pdf-invoice.git","type":"git"},"_npmVersion":"8.19.2","description":"Simple yet powerful node JS library that generates PDF invoice on the fly.","directories":{},"_nodeVersion":"18.12.1","dependencies":{"pdfmake":"^0.2.8"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","ts-node":"^10.9.2","typescript":"^5.3.3","@types/node":"^20.10.5","@types/pdfmake":"^0.2.8"},"_npmOperationalInternal":{"tmp":"tmp/pdf-invoice_1.0.3_1704307789942_0.5474039226304257","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"@h1dd3nsn1p3r/pdf-invoice","version":"1.0.4","keywords":["pdf","invoice","estimate","receipt","generator","nodejs","pdfmake"],"author":{"name":"h1dd3nsn1p3r"},"license":"MIT","_id":"@h1dd3nsn1p3r/pdf-invoice@1.0.4","maintainers":[{"name":"h1dd3nsn1p3r","email":"struggleage@gmail.com"}],"homepage":"https://github.com/h1dd3nsn1p3r/pdf-invoice","bugs":{"url":"https://github.com/h1dd3nsn1p3r/pdf-invoice/issues"},"dist":{"shasum":"9bff0984a092d30eee85d93def577422791081eb","tarball":"https://registry.npmjs.org/@h1dd3nsn1p3r/pdf-invoice/-/pdf-invoice-1.0.4.tgz","fileCount":23,"integrity":"sha512-wNHa1SMLvhFSJIPgJzZfw+DNjhMY51iPmVhxwo7onXoFr+BVqkHvbzKMdYWS5JwH2Wew0RuScKbVPiD8Eb9rKQ==","signatures":[{"sig":"MEUCIEQCP7JU8C2vntywOH7jcr/HRDV1aEAcGUtxcAogG+2SAiEAgzmXtxH7CDd+40f+ZRDrqHWj832lHOACQqPxXwLm7T8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":116184},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","gitHead":"29f7987c9067cfc3e18d1b21e58aae1c08cb6b19","scripts":{"dev":"tsup ./src --watch","build":"tsup ./src"},"_npmUser":{"name":"h1dd3nsn1p3r","email":"struggleage@gmail.com"},"repository":{"url":"git+ssh://git@github.com/h1dd3nsn1p3r/pdf-invoice.git","type":"git"},"_npmVersion":"10.2.3","description":"Simple yet powerful node JS library that generates PDF invoice on the fly.","directories":{},"_nodeVersion":"18.19.0","dependencies":{"pdfmake":"^0.2.8"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","ts-node":"^10.9.2","typescript":"^5.3.3","@types/node":"^20.10.5","@types/pdfmake":"^0.2.8"},"_npmOperationalInternal":{"tmp":"tmp/pdf-invoice_1.0.4_1704349464871_0.7716240727257169","host":"s3://npm-registry-packages"}},"1.0.5":{"name":"@h1dd3nsn1p3r/pdf-invoice","version":"1.0.5","keywords":["pdf","invoice","estimate","receipt","generator","nodejs","pdfmake"],"author":{"name":"h1dd3nsn1p3r"},"license":"MIT","_id":"@h1dd3nsn1p3r/pdf-invoice@1.0.5","maintainers":[{"name":"h1dd3nsn1p3r","email":"struggleage@gmail.com"}],"homepage":"https://github.com/h1dd3nsn1p3r/pdf-invoice","bugs":{"url":"https://github.com/h1dd3nsn1p3r/pdf-invoice/issues"},"dist":{"shasum":"16d8016abb0086fc6a6374acff77f06231934478","tarball":"https://registry.npmjs.org/@h1dd3nsn1p3r/pdf-invoice/-/pdf-invoice-1.0.5.tgz","fileCount":22,"integrity":"sha512-iArNNhywCAOxF3lF7oCkpHJ7h3DhRXlnf8T1vPOL3Rhy/GlpOmPZelpzXnUwODfudjZ44W4roK7PNBq101Maxg==","signatures":[{"sig":"MEQCIHhf/y449SvQGqtehNvLy/gQVrYWzejSlfiUYD0yRQ5XAiBVRPCxnuayXcU6dhhcSLLnVBtiWoJXEFdP96yJr/obkw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":119401},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","gitHead":"3f9527f78a4ea5dce68e0005078bfb9e67e8fd00","scripts":{"dev":"tsup ./src --watch","test":"node ./examples/example.ts","build":"tsup ./src"},"_npmUser":{"name":"h1dd3nsn1p3r","email":"struggleage@gmail.com"},"repository":{"url":"git+ssh://git@github.com/h1dd3nsn1p3r/pdf-invoice.git","type":"git"},"_npmVersion":"10.2.3","description":"Simple yet powerful node JS library that generates PDF invoice on the fly.","directories":{},"_nodeVersion":"18.19.0","dependencies":{"pdfmake":"^0.2.8"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","ts-node":"^10.9.2","typescript":"^5.3.3","@types/node":"^20.10.5","@types/pdfmake":"^0.2.8"},"_npmOperationalInternal":{"tmp":"tmp/pdf-invoice_1.0.5_1704451903624_0.5317544164739532","host":"s3://npm-registry-packages"}},"1.0.6":{"name":"@h1dd3nsn1p3r/pdf-invoice","version":"1.0.6","keywords":["pdf","invoice","estimate","receipt","generator","nodejs","pdfmake"],"author":{"name":"h1dd3nsn1p3r"},"license":"MIT","_id":"@h1dd3nsn1p3r/pdf-invoice@1.0.6","maintainers":[{"name":"h1dd3nsn1p3r","email":"struggleage@gmail.com"}],"homepage":"https://github.com/h1dd3nsn1p3r/pdf-invoice","bugs":{"url":"https://github.com/h1dd3nsn1p3r/pdf-invoice/issues"},"dist":{"shasum":"5dfc66b6ef726e6d5c7072125b78c4efd5934884","tarball":"https://registry.npmjs.org/@h1dd3nsn1p3r/pdf-invoice/-/pdf-invoice-1.0.6.tgz","fileCount":22,"integrity":"sha512-Opk+HNKe8m+BN1LR7v4uUUzFJ6sSJq3gS8hQ9HZgFqSk0PzTv227bmjRC0W9Yr0d48hu8tAcSLFc5t5E8cQGlw==","signatures":[{"sig":"MEYCIQDa4gpDSYWpDyvxX9rxLbywlthN6DcbvwPikwQCXCYU0QIhAI7R+CVYghyWdg53ulZTw8A33vdD2qRYTwdFf+R7eSNq","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":119716},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","gitHead":"1d1c62256d49a000fd55690303bb1a0d18164395","scripts":{"dev":"tsup ./src --watch","test":"node ./examples/example.ts","build":"tsup ./src"},"_npmUser":{"name":"h1dd3nsn1p3r","email":"struggleage@gmail.com"},"repository":{"url":"git+ssh://git@github.com/h1dd3nsn1p3r/pdf-invoice.git","type":"git"},"_npmVersion":"10.2.3","description":"Simple yet powerful node JS library that generates PDF invoice on the fly.","directories":{},"_nodeVersion":"18.19.0","dependencies":{"pdfmake":"^0.2.8"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","ts-node":"^10.9.2","typescript":"^5.3.3","@types/node":"^20.10.5","@types/pdfmake":"^0.2.8"},"_npmOperationalInternal":{"tmp":"tmp/pdf-invoice_1.0.6_1705060685355_0.8451446076832596","host":"s3://npm-registry-packages"}},"1.0.7":{"name":"@h1dd3nsn1p3r/pdf-invoice","version":"1.0.7","keywords":["pdf","invoice","estimate","receipt","generator","nodejs","pdfmake"],"author":{"name":"h1dd3nsn1p3r"},"license":"MIT","_id":"@h1dd3nsn1p3r/pdf-invoice@1.0.7","maintainers":[{"name":"h1dd3nsn1p3r","email":"struggleage@gmail.com"}],"homepage":"https://github.com/h1dd3nsn1p3r/pdf-invoice","bugs":{"url":"https://github.com/h1dd3nsn1p3r/pdf-invoice/issues"},"dist":{"shasum":"7c941332db1f7e7cb9ede548b7c145c685aa5b8f","tarball":"https://registry.npmjs.org/@h1dd3nsn1p3r/pdf-invoice/-/pdf-invoice-1.0.7.tgz","fileCount":28,"integrity":"sha512-rt/PTYeSMg5mATVkodvMgOxGr4FS6UVlGCHVOeRfGWxxkyy2mCumHQTZ7++M161gufatBv1Q6xkQaTttbx4E/w==","signatures":[{"sig":"MEQCICS+8R55eN+bUNBrHMiTOTnerwoh/OSxJhkSEbly50PBAiBM1C9QZm2r/SpGAowbTYSRyZIy7fmm1AJvgpYDaRhE9g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":138550},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","gitHead":"e4380f9b31eeee185134cf7175ba06d3a52acc63","scripts":{"dev":"tsup ./src --watch","test":"node ./examples/example.ts","build":"tsup ./src"},"_npmUser":{"name":"h1dd3nsn1p3r","email":"struggleage@gmail.com"},"repository":{"url":"git+ssh://git@github.com/h1dd3nsn1p3r/pdf-invoice.git","type":"git"},"_npmVersion":"10.2.3","description":"Simple yet powerful node JS library that generates PDF invoice on the fly.","directories":{},"_nodeVersion":"18.19.0","dependencies":{"pdfmake":"^0.2.8"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","ts-node":"^10.9.2","typescript":"^5.3.3","@types/node":"^20.10.5","@types/pdfmake":"^0.2.8"},"_npmOperationalInternal":{"tmp":"tmp/pdf-invoice_1.0.7_1705774055086_0.5712175377162017","host":"s3://npm-registry-packages"}},"1.0.8":{"name":"@h1dd3nsn1p3r/pdf-invoice","version":"1.0.8","keywords":["pdf","invoice","estimate","receipt","generator","nodejs","pdfmake"],"author":{"name":"h1dd3nsn1p3r"},"license":"MIT","_id":"@h1dd3nsn1p3r/pdf-invoice@1.0.8","homepage":"https://github.com/h1dd3nsn1p3r/pdf-invoice","bugs":{"url":"https://github.com/h1dd3nsn1p3r/pdf-invoice/issues"},"dist":{"shasum":"56debf5e88d2333b668a644c6e089c3b93771522","tarball":"https://registry.npmjs.org/@h1dd3nsn1p3r/pdf-invoice/-/pdf-invoice-1.0.8.tgz","fileCount":20,"integrity":"sha512-3/R03jMaNHrMtqU6t5XKEkbTwzMSu3xCn2rqoStEACHrYs2SKTjXEfyAKARRH/tG7Mo34Z3O7NThzuPgyXa1VQ==","signatures":[{"sig":"MEYCIQD/QEpQnBy7QcFYMXJw8gMqVO7/5iOdofT4IH+WuEk1/gIhAObm/viVl/QGls1nhtpCGypFQ6R8gmJyso2DO2ePuf3H","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":139449},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","gitHead":"ee9398a636586519902b600cb9ee2ac07becfcc8","scripts":{"dev":"tsup ./src --watch","test":"node ./examples/example.ts","build":"tsup ./src"},"_npmUser":{"name":"h1dd3nsn1p3r","email":"struggleage@gmail.com"},"repository":{"url":"git+ssh://git@github.com/h1dd3nsn1p3r/pdf-invoice.git","type":"git"},"_npmVersion":"10.7.0","description":"Simple yet powerful node JS library that generates PDF invoice on the fly.","directories":{},"_nodeVersion":"18.20.3","dependencies":{"pdfmake":"^0.2.8"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","ts-node":"^10.9.2","typescript":"^5.3.3","@types/node":"^20.10.5","@types/pdfmake":"^0.2.8"},"_npmOperationalInternal":{"tmp":"tmp/pdf-invoice_1.0.8_1719155964730_0.9735183957795599","host":"s3://npm-registry-packages"}},"1.0.9":{"name":"@h1dd3nsn1p3r/pdf-invoice","version":"1.0.9","keywords":["pdf","invoice","estimate","receipt","generator","nodejs","pdfmake"],"author":{"name":"h1dd3nsn1p3r"},"license":"MIT","_id":"@h1dd3nsn1p3r/pdf-invoice@1.0.9","maintainers":[{"name":"h1dd3nsn1p3r","email":"struggleage@gmail.com"}],"homepage":"https://github.com/h1dd3nsn1p3r/pdf-invoice","bugs":{"url":"https://github.com/h1dd3nsn1p3r/pdf-invoice/issues"},"dist":{"shasum":"ff2ae40e16c5a58f8f5e07dda5520586163c6c3a","tarball":"https://registry.npmjs.org/@h1dd3nsn1p3r/pdf-invoice/-/pdf-invoice-1.0.9.tgz","fileCount":20,"integrity":"sha512-vNMvmdzRSkqd6SJNc8Qs7dnaTcE1gMc+wNPv7l5DlkkYZd2gYFeIzTqGAU9uvruA6RXwMKcmxMBaMmDQLgFV1Q==","signatures":[{"sig":"MEYCIQDvoJY6DHgqANe8a5h637f3Nm0vtD4yOBY6SiP5RixrFQIhAIZnUqd5CWYPqhlJbVzLGP6MeokJXCXqYUo7O+8vqCGo","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":164225},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","gitHead":"ad4b7bb06e9c6a9b66cc76c5e665cae3f708812e","scripts":{"dev":"tsup ./src --watch","test":"node ./examples/example.ts","build":"tsup ./src"},"_npmUser":{"name":"h1dd3nsn1p3r","email":"struggleage@gmail.com"},"repository":{"url":"git+ssh://git@github.com/h1dd3nsn1p3r/pdf-invoice.git","type":"git"},"_npmVersion":"10.7.0","description":"Simple yet powerful node JS library that generates PDF invoice on the fly.","directories":{},"_nodeVersion":"18.20.4","dependencies":{"pdfmake":"^0.2.8"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","ts-node":"^10.9.2","typescript":"^5.3.3","@types/node":"^20.10.5","@types/pdfmake":"^0.2.8"},"_npmOperationalInternal":{"tmp":"tmp/pdf-invoice_1.0.9_1731307263161_0.45680614883103177","host":"s3://npm-registry-packages"}},"1.0.10":{"name":"@h1dd3nsn1p3r/pdf-invoice","version":"1.0.10","keywords":["pdf","invoice","estimate","receipt","generator","nodejs","pdfmake"],"author":{"name":"h1dd3nsn1p3r"},"license":"MIT","_id":"@h1dd3nsn1p3r/pdf-invoice@1.0.10","maintainers":[{"name":"h1dd3nsn1p3r","email":"struggleage@gmail.com"}],"homepage":"https://github.com/h1dd3nsn1p3r/pdf-invoice","bugs":{"url":"https://github.com/h1dd3nsn1p3r/pdf-invoice/issues"},"dist":{"shasum":"8ba088c2d7a5078e3a200ccadc7d06fcc07d252b","tarball":"https://registry.npmjs.org/@h1dd3nsn1p3r/pdf-invoice/-/pdf-invoice-1.0.10.tgz","fileCount":20,"integrity":"sha512-HXgc1uRv6U16jCkKVv6kXn0P615lJB0mvwG+22P9ZFFX+6QlaZn1/vu5zgPu9Ns0tqqqb9UBZA0dBcR8Zml0DA==","signatures":[{"sig":"MEUCIQCc9zfZH1rmWTLLIy4AYv1rMCre6MW29CsgamUfPW60KAIgVFcSwbS7bAFUbPp/I91zifzJO+8wSLlxjCPaAH7WLlQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":177063},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","gitHead":"92eb6494c81adedcf455989c5ed2785f638a34d3","scripts":{"dev":"tsup ./src --watch","test":"node ./examples/example.ts","build":"tsup ./src"},"_npmUser":{"name":"h1dd3nsn1p3r","email":"struggleage@gmail.com"},"repository":{"url":"git+ssh://git@github.com/h1dd3nsn1p3r/pdf-invoice.git","type":"git"},"_npmVersion":"10.8.2","description":"Simple yet powerful node JS library that generates PDF invoice on the fly.","directories":{},"_nodeVersion":"18.20.7","dependencies":{"pdfmake":"^0.2.8"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","ts-node":"^10.9.2","typescript":"^5.3.3","@types/node":"^20.10.5","@types/pdfmake":"^0.2.8"},"_npmOperationalInternal":{"tmp":"tmp/pdf-invoice_1.0.10_1742281622971_0.35075112761003635","host":"s3://npm-registry-packages-npm-production"}},"1.0.12":{"name":"@h1dd3nsn1p3r/pdf-invoice","version":"1.0.12","keywords":["pdf","invoice","estimate","receipt","generator","nodejs","pdfmake"],"author":{"name":"h1dd3nsn1p3r"},"license":"MIT","_id":"@h1dd3nsn1p3r/pdf-invoice@1.0.12","maintainers":[{"name":"h1dd3nsn1p3r","email":"struggleage@gmail.com"}],"homepage":"https://github.com/h1dd3nsn1p3r/pdf-invoice","bugs":{"url":"https://github.com/h1dd3nsn1p3r/pdf-invoice/issues"},"dist":{"shasum":"e61ba3465b67af80908afb9a6295f8d5056368d5","tarball":"https://registry.npmjs.org/@h1dd3nsn1p3r/pdf-invoice/-/pdf-invoice-1.0.12.tgz","fileCount":20,"integrity":"sha512-O4v8vXSRCR2ki4L9tNsgQBRtSeX4O9HbroYADjRLZ9J+xS0mTKlUCFLvrPWF+BLDjNOkAvt5zlxx/vsUFgxMZw==","signatures":[{"sig":"MEUCIDzkEEqi5gsr098VPcKORNIevErxYEOZ5Qm0gStqQpl4AiEAl622hb2xCjMr5I4VDp5r3ZutPGlkOz1NSQtvqOuKDZs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":204292},"main":"./dist/index.js","pnpm":{"onlyBuiltDependencies":["esbuild"]},"types":"./dist/index.d.ts","module":"./dist/index.mjs","gitHead":"2ed36b8db7f4b398c66695f8303f24ac7eb44dd5","scripts":{"dev":"tsup ./src --watch","test":"node ./examples/example.ts","build":"tsup ./src"},"_npmUser":{"name":"h1dd3nsn1p3r","email":"struggleage@gmail.com"},"repository":{"url":"git+ssh://git@github.com/h1dd3nsn1p3r/pdf-invoice.git","type":"git"},"_npmVersion":"10.8.2","description":"Simple yet powerful node JS library that generates PDF invoice on the fly.","directories":{},"_nodeVersion":"18.20.8","dependencies":{"pdfmake":"^0.2.8"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","ts-node":"^10.9.2","typescript":"^5.3.3","@types/node":"^20.10.5","@types/pdfmake":"^0.2.8"},"_npmOperationalInternal":{"tmp":"tmp/pdf-invoice_1.0.12_1760452770627_0.13043984186924296","host":"s3://npm-registry-packages-npm-production"}},"1.0.13":{"name":"@h1dd3nsn1p3r/pdf-invoice","version":"1.0.13","keywords":["pdf","invoice","estimate","receipt","generator","nodejs","pdfmake"],"author":{"name":"h1dd3nsn1p3r"},"license":"MIT","_id":"@h1dd3nsn1p3r/pdf-invoice@1.0.13","maintainers":[{"name":"h1dd3nsn1p3r","email":"struggleage@gmail.com"}],"homepage":"https://github.com/h1dd3nsn1p3r/pdf-invoice","bugs":{"url":"https://github.com/h1dd3nsn1p3r/pdf-invoice/issues"},"dist":{"shasum":"ad22354798c1ae657d7f3d9f383020255491db5f","tarball":"https://registry.npmjs.org/@h1dd3nsn1p3r/pdf-invoice/-/pdf-invoice-1.0.13.tgz","fileCount":20,"integrity":"sha512-8+C5QteYKcYNuRxm9WNWsFZOlYbzxt7Npd4ze9OEFMUOKuc1DJttszNYIdNRSqemKkWqKnx3M8pGQmB7vXHP8w==","signatures":[{"sig":"MEUCIQDwY6K/adgjqmBtv4ZlAaznF6exxhf2McHSxtOBBfS2cwIgHndRASPHGIfrDyKWioGE7cVG7LWTqbGOQCvEhXFhsag=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":205759},"main":"./dist/index.js","pnpm":{"onlyBuiltDependencies":["esbuild"]},"types":"./dist/index.d.ts","module":"./dist/index.mjs","gitHead":"e2929fb6d872ebb5af537f564707a6fb13efad5c","scripts":{"dev":"tsup ./src --watch","test":"node ./examples/example.ts","build":"tsup ./src"},"_npmUser":{"name":"h1dd3nsn1p3r","email":"struggleage@gmail.com"},"repository":{"url":"git+ssh://git@github.com/h1dd3nsn1p3r/pdf-invoice.git","type":"git"},"_npmVersion":"10.8.2","description":"Simple yet powerful node JS library that generates PDF invoice on the fly.","directories":{},"_nodeVersion":"18.20.8","dependencies":{"pdfmake":"^0.2.8"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","ts-node":"^10.9.2","typescript":"^5.3.3","@types/node":"^20.10.5","@types/pdfmake":"^0.2.8"},"_npmOperationalInternal":{"tmp":"tmp/pdf-invoice_1.0.13_1767801392978_0.8612755123469751","host":"s3://npm-registry-packages-npm-production"}},"1.0.14":{"name":"@h1dd3nsn1p3r/pdf-invoice","version":"1.0.14","keywords":["pdf","invoice","estimate","receipt","generator","nodejs","pdfmake"],"author":{"name":"h1dd3nsn1p3r"},"license":"MIT","_id":"@h1dd3nsn1p3r/pdf-invoice@1.0.14","maintainers":[{"name":"h1dd3nsn1p3r","email":"struggleage@gmail.com"}],"homepage":"https://github.com/h1dd3nsn1p3r/pdf-invoice","bugs":{"url":"https://github.com/h1dd3nsn1p3r/pdf-invoice/issues"},"dist":{"shasum":"ffcabd848b83371ef2a2d69c3a95907f541950f1","tarball":"https://registry.npmjs.org/@h1dd3nsn1p3r/pdf-invoice/-/pdf-invoice-1.0.14.tgz","fileCount":21,"integrity":"sha512-3RRn14m/hJAIyFJSWsQMTjrUD7iIgx970fEMClQ/dF6YpR5HEd4KfkFKSLDqxIcO2FZqW7p4H6zsTJpeLRn+sQ==","signatures":[{"sig":"MEYCIQDi11TQz2UB30Us1hvI65DYQBdHpSYH3KJD+1j1nxuwSAIhAIAmzGP+zQxp8Fi4kfaZVVlarqb2/+TxH1B+GrZTbMd8","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":207101},"main":"./dist/index.js","pnpm":{"onlyBuiltDependencies":["esbuild"]},"types":"./dist/index.d.ts","module":"./dist/index.mjs","gitHead":"a41bc942ed85ee49c89b268fdd935bc66ec777f7","scripts":{"dev":"tsup ./src --watch","test":"node ./examples/example.ts","build":"tsup ./src"},"_npmUser":{"name":"h1dd3nsn1p3r","email":"struggleage@gmail.com"},"repository":{"url":"git+ssh://git@github.com/h1dd3nsn1p3r/pdf-invoice.git","type":"git"},"_npmVersion":"10.8.2","description":"Simple yet powerful node JS library that generates PDF invoice on the fly.","directories":{},"_nodeVersion":"18.20.8","dependencies":{"pdfmake":"^0.3.1"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","ts-node":"^10.9.2","typescript":"^5.3.3","@types/node":"^20.10.5"},"_npmOperationalInternal":{"tmp":"tmp/pdf-invoice_1.0.14_1767962945967_0.8682231048878182","host":"s3://npm-registry-packages-npm-production"}},"1.0.15":{"name":"@h1dd3nsn1p3r/pdf-invoice","version":"1.0.15","author":{"name":"h1dd3nsn1p3r"},"description":"Simple yet powerful node JS library that generates PDF invoice on the fly.","license":"MIT","main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","scripts":{"dev":"tsup ./src --watch","build":"tsup ./src","test":"node ./examples/example.ts"},"repository":{"type":"git","url":"git+ssh://git@github.com/h1dd3nsn1p3r/pdf-invoice.git"},"homepage":"https://github.com/h1dd3nsn1p3r/pdf-invoice","keywords":["pdf","invoice","estimate","receipt","generator","nodejs","pdfmake"],"devDependencies":{"@types/node":"^20.10.5","ts-node":"^10.9.2","tsup":"^8.0.1","typescript":"^5.3.3"},"dependencies":{"pdfmake":"^0.3.1"},"pnpm":{"onlyBuiltDependencies":["esbuild"]},"_id":"@h1dd3nsn1p3r/pdf-invoice@1.0.15","gitHead":"f5e0f963bbaa573bbf6e6f3ad30d700b047ad706","bugs":{"url":"https://github.com/h1dd3nsn1p3r/pdf-invoice/issues"},"_nodeVersion":"18.20.8","_npmVersion":"10.8.2","dist":{"integrity":"sha512-rMPHFnA6lw+TsQ0jE6fzRXB9iblzmNETP+98TFm9E1dcP9CnlUI6w3YgyiZVQTSCU6Jt5ysfEBvDzcP3+Hi+8A==","shasum":"ce0ddee8142fbbcf7f57ecb8ec104ceea5474454","tarball":"https://registry.npmjs.org/@h1dd3nsn1p3r/pdf-invoice/-/pdf-invoice-1.0.15.tgz","fileCount":21,"unpackedSize":211379,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIAgAmq7RbzEHakSw8FGA5KjZBFR3SZqvBEjmVitid1u5AiEA1RezTou83AS8pGhoI/YlTZliKYVpp2j9E+l/ACySze4="}]},"_npmUser":{"name":"h1dd3nsn1p3r","email":"struggleage@gmail.com"},"directories":{},"maintainers":[{"name":"h1dd3nsn1p3r","email":"struggleage@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pdf-invoice_1.0.15_1771087036504_0.4977280864991438"},"_hasShrinkwrap":false}},"time":{"created":"2024-01-03T06:02:40.152Z","modified":"2026-02-14T16:37:16.762Z","1.0.0":"2024-01-03T06:02:40.509Z","1.0.1":"2024-01-03T07:15:09.578Z","1.0.2":"2024-01-03T11:13:14.271Z","1.0.3":"2024-01-03T18:49:50.154Z","1.0.4":"2024-01-04T06:24:25.065Z","1.0.5":"2024-01-05T10:51:43.779Z","1.0.6":"2024-01-12T11:58:05.501Z","1.0.7":"2024-01-20T18:07:35.303Z","1.0.8":"2024-06-23T15:19:24.868Z","1.0.9":"2024-11-11T06:41:03.358Z","1.0.10":"2025-03-18T07:07:03.182Z","1.0.12":"2025-10-14T14:39:30.818Z","1.0.13":"2026-01-07T15:56:33.132Z","1.0.14":"2026-01-09T12:49:06.118Z","1.0.15":"2026-02-14T16:37:16.648Z"},"bugs":{"url":"https://github.com/h1dd3nsn1p3r/pdf-invoice/issues"},"author":{"name":"h1dd3nsn1p3r"},"license":"MIT","homepage":"https://github.com/h1dd3nsn1p3r/pdf-invoice","keywords":["pdf","invoice","estimate","receipt","generator","nodejs","pdfmake"],"repository":{"type":"git","url":"git+ssh://git@github.com/h1dd3nsn1p3r/pdf-invoice.git"},"description":"Simple yet powerful node JS library that generates PDF invoice on the fly.","maintainers":[{"name":"h1dd3nsn1p3r","email":"struggleage@gmail.com"}],"readme":"![PDF Invoice](https://github.com/h1dd3nsn1p3r/pdf-invoice/blob/development/examples/hero.png)\n\n📑 Simple yet powerful JavaScript library that generates PDF invoice, estimates & payment receipts from a JSON data. It can be used in any Node JS/Bun JS environment.\n\n## Installation\n\nvia npm:\n\n```bash\nnpm install @h1dd3nsn1p3r/pdf-invoice\n```\n\nvia yarn:\n\n```bash\nyarn add @h1dd3nsn1p3r/pdf-invoice\n```\n\nvia pnpm:\n\n```bash\npnpm add @h1dd3nsn1p3r/pdf-invoice\n```\n\n## Use\n\nOnce installed, you can import either using `require` or `import`:\n\n```js\nconst { PDFInvoice } = require(\"@h1dd3nsn1p3r/pdf-invoice\");\n```\n\nor ES6 import:\n\n```js\nimport { PDFInvoice } from \"@h1dd3nsn1p3r/pdf-invoice\";\n```\n\n`PDFInvoice` is a class that takes the payload as an argument. The payload is the data that you want to show on the invoice. For more information check the [Payload data](https://github.com/h1dd3nsn1p3r/pdf-invoice/blob/stable/examples/example.ts) example.\n\n## Payload Data\n\nThe payload is the data that you want to show on the invoice. It is an object with the following structure:\n\n```js\nconst payload = {\n\tcompany: {\n\t\tlogo: \"<svg>...</svg>\", // Optional. SVG logo of your company.\n\t\tname: \"Festrol Corp.\",\n\t\taddress: \"1711 W. El Segundo Blvd, Hawthorne, Canada - 90250\",\n\t\tphone: \"Tel: (+11) 245 543 903\",\n\t\temail: \"Mail: hello@festrol.io\",\n\t\twebsite: \"Web: https://www.festrolcorp.io\",\n\t\ttaxId: \"Tax ID: 1234567890\", // Optional.\n\t\tbank: \"IBAN: 1234567890AC\", // Optional.\n\t},\n\tcustomer: {\n\t\tname: \"John Doe\",\n\t\tcompany: \"Xero Inc.\", // Optional.\n\t\taddress: \"1234 Main Street, New York, NY 10001\",\n\t\tphone: \"Tel: (555) 555-5555\",\n\t\temail: \"Mail: joe@example.com\",\n\t\ttaxId: \"Tax ID: 1234567890\", // Optional.\n\t},\n\tinvoice: {\n\t\tnumber: 1721, // String or number.\n\t\tdate: \"25/12/2023\", // Default is current date.\n\t\tdueDate: \"25/12/2023\", // Default is current date.\n\t\tstatus: \"Paid!\",\n\t\tlocale: \"es-ES\", // BCP 47 language tag. Default is \"en-US\".\n\t\tcurrency: \"EUR\", // ISO 4217 currency code. Default is \"USD\".\n\t\tpath: \"./invoice.pdf\", // Required. Path where you would like to generate the PDF file.\n\t\tfee: 10, // Amount of fee to be added to the invoice (not percentage)\n\t\torderDiscount: 10, // Amount of order discount (not percentage)\n\t},\n\titems: [\n\t\t{\n\t\t\tname: \"Cloud VPS Server - Starter Plan\",\n\t\t\tquantity: 1,\n\t\t\tprice: 400,\n\t\t\tdiscount: 19, // Percentage of discount.\n\t\t\ttax: 0, // Tax percentage. Default is 0.\n\t\t},\n\t\t{\n\t\t\tname: \"Domain Registration - example.com\",\n\t\t\tquantity: 1,\n\t\t\tdiscount: 19, // Percentage of discount.\n\t\t\tprice: 20,\n\t\t\ttax: 0, // Tax percentage. Default is 0.\n\t\t},\n\t\t{\n\t\t\tname: \"Maintenance Charge - Yearly\",\n\t\t\tquantity: 1,\n\t\t\tdiscount: 0, // Percentage of discount.\n\t\t\tprice: 300,\n\t\t\ttax: 0, // Tax percentage. Default is 0.\n\t\t},\n\t],\n\tqr: {\n\t\tdata: \"https://www.festrolcorp.io\",\n\t\twidth: 100, // Default is 50.\n\t},\n\tnote: {\n\t\ttext: \"Thank you for your business.\",\n\t\titalic: false, // Default is true.\n\t},\n};\n```\n\n**Note:** If the string is long, then you can use `\\n` to break the line. For example:\n\n```js\nconst payload = {\n\tcompany: {\n\t\tname: \"Festrol Corp.\",\n\t\taddress: \"1711 W. El Segundo Blvd, Hawthorne, \\n Canada - 90250\",\n\t\tphone: \"Tel: (+11) 245 543 903\",\n\t\temail: \"Mail: email@yourcompany.com\",\n\t},\n};\n```\n\nLet's understand each of the fields in the payload.\n\n### Company\n\nThis is the information about your company. It is an object with the following structure:\n\n```js\nconst company = {\n\tlogo: \"<svg>...</svg>\", // Optional. SVG logo of your company.\n\tname: \"Festrol Corp.\", // Optional or required if logo is not supplied.\n\taddress: \"1711 W. El Segundo Blvd, Hawthorne, \\n Canada - 90250\", // Optional.\n\tphone: \"Tel: (+11) 245 543 903\", // Optional.\n\temail: \"hello@company.com\", // Optional.\n\twebsite: \"Web: https://www.festrolcorp.io\" // Optional.\n\ttaxId: \"Tax ID: 1234567890\", // Optional.\n\tbank: \"IBAN: 1234567890AC\", // Optional.\n}\n```\n\nFor now, only **svg logo** can be used. If you wish to use logo & do not want the company name, then do not pass the `name` field. Rest of the fields are optional.\n\n### Invoice\n\nThis is the information about the invoice. It is an object with the following structure:\n\n```js\nconst invoice = {\n\tnumber: 1721, // Required.\n\tdate: \"25/12/2023\", // Optional. Default is current date.\n\tdueDate: \"25/12/2023\", // Optional. Default is current date.\n\tstatus: \"Paid!\", // Optional. Default is \"Due pending!\".\n\tlocale: \"es-ES\", // Optional. Default is \"en-US\".\n\tcurrency: \"EUR\", // Optional. Default is \"USD\".\n\tfees: [\n\t\t{\n\t\t\tlabel: \"Delivery Charge\",\n\t\t\tamount: 10, // Number (not percentage)\n\t\t\toperation: \"+\",\n\t\t},\n\t\t{\n\t\t\tlabel: \"Payment Processing\",\n\t\t\tamount: 3.2, // Number (not percentage)\n\t\t\toperation: \"-\",\n\t\t},\n\t], // Customer and business fees (Optional)\n\torderDiscount: 10, // Optional. Total order discount (not percentage).\n};\n```\n\nThe invoice number is required. It might be a `int` that you use to track your invoices. In most cases, it is a unique number that reference the `order ID` or invoice sequence number in your database. Rest of the fields are optional.\n\nThe `locale` is the BCP 47 language tag. Default is `en-US`. You can find the list of language tags [here](http://4umi.com/web/html/languagecodes.php). The `currency` is the ISO 4217 currency code. Default is `USD`. You can find the list of currency codes [here](https://www.iban.com/currency-codes). For more information on locale and currency, refer to [Mozilla Int Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat) documentation.\n\nIf `path` is supplied in the payload, then the PDF will be generated at that location. For example:\n\n```js\nconst file = \"invoice\" + \"-#\" + 1729 + \"-\" + new Date().getTime(); // invoice-#1729-1630480000000\nconst location = path.join(__dirname, \"/invoices/\" + file + \".pdf\");\nconst invoice = {\n\tpath: location, // Required.\n};\n```\n\nIf path is not supplied in the payload, then the PDF will be generated in current working directory with the name `invoice.pdf`.\n\n### Customer\n\nThis is the information about your customer. It is an object with the following structure:\n\n```js\nconst customer = {\n\tname: \"John Doe\", // Required.\n\tcompany: \"Xero Inc.\", // Optional.\n\taddress: \"1234 Main Street, New York, \\n NY 10001\", // Optional.\n\tphone: \"Tel: (555) 555-5555\", // Optional.\n\temail: \"joedeo@example.com\", // Optional.\n\ttaxId: \"Tax ID: 1234567890\", // Optional.\n};\n```\n\nThe name of the customer is required. Rest of the fields are optional.\n\n### Items\n\nItems are the products or services that you are selling. It is an `array` of objects with the following structure:\n\n```js\nconst items = [\n\t{\n\t\tname: \"Cloud VPS Server - Starter Plan\", // Required.\n\t\tquantity: 1, // Required.\n\t\tprice: 400, // Required.\n\t\ttax: 0, // Optional. Tax percentage. Default is 0.\n\t\tdiscount: 0, // Optional. Item discount percentage. Default is 0.\n\t},\n\t{\n\t\tname: \"Domain Registration - example.com\", // Required.\n\t\tquantity: 1, // Required.\n\t\tprice: 20, // Required.\n\t\ttax: 0, // Optional. Tax percentage. Default is 0.\n\t\tdiscount: 0, // Optional. Item discount percentage. Default is 0.\n\t},\n\t{\n\t\tname: \"Maintenance Charge - Yearly\", // Required.\n\t\tquantity: 1, // Required.\n\t\tprice: 300, // Required.\n\t\ttax: 0, // Optional. Tax percentage. Default is 0.\n\t\tdiscount: 0, // Optional. Item discount percentage. Default is 0.\n\t},\n];\n```\n\nThe `name`, `quantity` and `price` of the item is required. Rest of the fields are optional. Although if you have single item in the invoice, you need to pass it as an object. For example:\n\n```js\nconst items = [\n\t{\n\t\tname: \"Cloud VPS Server - Starter Plan\", // Required.\n\t\tquantity: 1, // Required.\n\t\tprice: 400, // Required.\n\t\ttax: 0, // Optional. Tax percentage. Default is 0.\n\t\tdiscount: 0, // Optional. Item discount percentage. Default is 0.\n\t},\n];\n```\n\n### Fees\n\nThe fee option was initially introduced in version [1.0.12](https://github.com/h1dd3nsn1p3r/pdf-invoice/releases/tag/v1.0.12) and was revised in version [1.0.15](https://github.com/h1dd3nsn1p3r/pdf-invoice/releases/tag/v1.0.15). Check this [discussion #53](https://github.com/h1dd3nsn1p3r/pdf-invoice/issues/53) for more information.\n\nFees are optional and are applied to the sub total amount of the invoice. The `operation` field can be either `+` or `-`, depending on whether you want to add or subtract the fee from the sub-total amount. The `amount` field specifies the fee amount. The `label` field defines the fee label, which will be displayed on the invoice just below the sub total amount.\n\n### QR Code\n\nIf you want to add a QR code to the invoice, then you can use this field. It is an object with the following structure:\n\n```js\nconst qr = {\n\tdata: \"https://www.festrolcorp.io/\", // Required. The data that you want to encode in the QR code.\n\twidth: \"100\", // Optional. Default is 50.\n};\n```\n\nThe `data` field is required. It is the data that you want to encode in the QR code. The `width` field is optional. It is the width of the QR code in pixels. Default is `50`. The recommended width of QR is 30 - 100.\n\n### Note\n\nUse this field if you want to add a note to the invoice. It is an string with the following structure:\n\n```js\nconst note = \"Thank you for your business.\";\n```\n\n## Generate PDF\n\nOnce you have the payload ready, you can generate the PDF using the following code:\n\n```js\nconst { PDFInvoice } = require(\"@h1dd3nsn1p3r/pdf-invoice\");\n\nconst handleInvoice = async (): Promise<void> => {\n\tconst payload = {\n\t\t// Prepare payload.\n\t};\n\n\t/**\n\t * Create the invoice.\n\t */\n\tconst invoice = new PDFInvoice(payload);\n\tconst pdf = await invoice.create(); // Returns promise, await it.\n\n\tconsole.log(pdf); // Full path to the PDF file.\n};\n\nhandleInvoice();\n```\n\nOnce you call the `create` method, it will return a promise. You can either use `async/await` or `.then()` to handle the promise. The `create` method will return the path to the PDF file if the PDF is generated successfully. Otherwise, it will throw an error.\n\n## Configuration\n\nIf required you can change the configuration of the invoice. It is an object with the following structure:\n\n### Strings\n\nAll the text strings that are used in the invoice can be customized. For example:\n\n```js\nconst { PDFInvoice } = require(\"@h1dd3nsn1p3r/pdf-invoice\");\n\nconst create = async (): Promise<void> => {\n\tconst payload = {\n\t\t// ....\n\t};\n\n\tconst config = {\n\t\t// Custom labels.\n\t\tstring: {\n\t\t\tinvoice: \"F A C T U A\",\n\t\t\trefNumber: \"Referencia\",\n\t\t\tdate: \"Fecha\",\n\t\t\tdueDate: \"Fecha de vencimiento\",\n\t\t\tstatus: \"Estado\",\n\t\t\tbillTo: \"Facturar a\",\n\t\t\titem: \"Artículo\",\n\t\t\tquantity: \"Cantidad\",\n\t\t\tprice: \"Precio\",\n\t\t\ttax: \"Impuesto\",\n\t\t\ttotal: \"Total\",\n\t\t\tsubTotal: \"Subtotal\",\n\t\t\tgrandTotal: \"Grand Total\", // Added in v1.0.11\n\t\t},\n\t};\n\n\t// Create the invoice.\n\tconst invoice = new PDFInvoice(payload, config);\n\tconst pdf = await invoice.create();\n\n\tconsole.log(pdf);\n};\n```\n\n### Fonts\n\nFollowing are the fonts that are available build-in with the library:\n\n- Helvetica\n- Times\n- Courier\n\nAll these three fonts includes regular, bold, italic and bold-italic styles. You can use them in the configuration object. For example:\n\n```js\nconst config = {\n\t// ....\n\tstyle: {\n\t\tfont: \"Helvetica\", // \"Helvetica\", \"Times\", \"Courier\"\n\t\tfontSize: 10, // Optional. Default is 10.\n\t\tlineHeight: 1.8, // Optional. Default is 1.8.\n\t\tcolor: \"#000000\", // Optional. Default is black.\n\t},\n};\n```\n\nAny font can be used with the `font` option by passing the fonts `TTF` files path. For example:\n\n```js\nconst config = {\n\t// ....\n\tfont: {\n\t\tNoto: {\n\t\t\tnormal: path.join(__dirname, \"fonts/noto/regular.ttf\"),\n\t\t\titalics: path.join(__dirname, \"fonts/noto/italic.ttf\"),\n\t\t\tbold: path.join(__dirname, \"fonts/noto/bold.ttf\"),\n\t\t\tbolditalics: path.join(__dirname, \"fonts/noto/bold-italic.ttf\"),\n\t\t},\n\t},\n\tstyle: {\n\t\tfont: \"Noto\",\n\t\tfontSize: 10, // Optional. Default is 10.\n\t\tlineHeight: 1.8, // Optional. Default is 1.8.\n\t\tcolor: \"#000000\", // Optional. Default is black.\n\t},\n};\n```\n\nIf you need additional information do check the [example](https://github.com/h1dd3nsn1p3r/pdf-invoice/blob/development/examples/example.ts). In the example, I have used \"Noto\" and the `TTF` files of Noto font are included in the `fonts` directory. If you have non-latin characters, then you can use any custom font that supports the characters.\n\n## Types\n\nThis library is written in TypeScript. If you need to import the types, then you can import them from `global.d.ts` file. Refer to [Global types](https://github.com/h1dd3nsn1p3r/pdf-invoice/blob/stable/global.d.ts) file for more information.\n\nExample:\n\n```js\nimport type {\n\tCompanyInfo,\n\tCustomerInfo,\n\tInvoiceInfo,\n\tItemInfo,\n\tQRInfo,\n\tInvoicePayLoad,\n} from \"@h1dd3nsn1p3r/pdf-invoice/global.d.ts\";\n```\n\n## Changelog:\n\nRefer to [releases](https://github.com/h1dd3nsn1p3r/pdf-invoice/releases) section for more information.\n\n## Contributing\n\nPull requests are welcome, but please open an issue to discuss before making any changes.\n","readmeFilename":"README.md"}