{"_id":"@abhisek507/html2multipagepdf","_rev":"13-d78ebf6a3e5bbb87a5bd7bb2655a381a","name":"@abhisek507/html2multipagepdf","dist-tags":{"latest":"2.1.1"},"versions":{"1.0.0":{"name":"@abhisek507/html2multipagepdf","version":"1.0.0","keywords":["html2pdf","html2multipagepdf","jspdf"],"author":{"name":"abhisek507"},"license":"MIT","_id":"@abhisek507/html2multipagepdf@1.0.0","maintainers":[{"name":"abhisek507","email":"abhisek.dutta.507@gmail.com"}],"homepage":"https://github.com/abhisekdutta507/html2multipagepdf#readme","bugs":{"url":"https://github.com/abhisekdutta507/html2multipagepdf/issues"},"dist":{"shasum":"6e71cdcd4027221aad0df23ef057d68be24fc10e","tarball":"https://registry.npmjs.org/@abhisek507/html2multipagepdf/-/html2multipagepdf-1.0.0.tgz","fileCount":3,"integrity":"sha512-8l3xPav867Tj2trbG1f13TISYA2MRDzEjr9Eip49n/94h/IERamZLEGHmETJqrkLBwnupze4nda8C7IUvI8azQ==","signatures":[{"sig":"MEUCIQDMiXjOZIHmD9XRqhazq+EAxdCSbrFhuV8621OkRNjhRwIgMLBeJQANo5sGi2xrYjLRBTIE9Z+pVBAqzm7JBqmByQQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4150},"main":"index.js","gitHead":"a79ad12adcd39593703a166b3c6bc4e0aa087350","scripts":{},"_npmUser":{"name":"abhisek507","email":"abhisek.dutta.507@gmail.com"},"repository":{"url":"git+https://github.com/abhisekdutta507/html2multipagepdf.git","type":"git"},"_npmVersion":"6.14.13","description":"Convert a pretty looking HTML template into a multipage PDF file.","directories":{},"_nodeVersion":"14.17.0","dependencies":{"jspdf":"^2.5.2","html2canvas":"^1.4.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/html2multipagepdf_1.0.0_1734722111606_0.197181687137451","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"@abhisek507/html2multipagepdf","version":"2.0.0","keywords":["html2pdf","html2multipagepdf","jspdf"],"author":{"name":"abhisek507"},"license":"MIT","_id":"@abhisek507/html2multipagepdf@2.0.0","maintainers":[{"name":"abhisek507","email":"abhisek.dutta.507@gmail.com"}],"homepage":"https://github.com/abhisekdutta507/html2multipagepdf#readme","bugs":{"url":"https://github.com/abhisekdutta507/html2multipagepdf/issues"},"dist":{"shasum":"fef34924bc639ac09b2ba0ed055d7983815dcd0c","tarball":"https://registry.npmjs.org/@abhisek507/html2multipagepdf/-/html2multipagepdf-2.0.0.tgz","fileCount":8,"integrity":"sha512-JGdCij1YuqONIyZhPHQCl2KFHcv7JGY9u4xOHlHgmcqEj0Z1ugdEy7MqkKij8dS42A6liIVKJ1uxgltCxQqIsw==","signatures":[{"sig":"MEYCIQDNFP7nfhQEMms0wSyPlVA65VFVvfR575MKyF+lPQcPcgIhAMaCfIUHbx0X7J7nAmtmubpa9OtUuWU+lOh1buzSSS8K","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14583},"main":"index.js","gitHead":"be44acf823424052a332a9bcaa20cc0de534242c","scripts":{},"_npmUser":{"name":"abhisek507","email":"abhisek.dutta.507@gmail.com"},"repository":{"url":"git+https://github.com/abhisekdutta507/html2multipagepdf.git","type":"git"},"_npmVersion":"6.14.13","description":"Convert a pretty looking HTML template into a multipage PDF file.","directories":{},"_nodeVersion":"14.17.0","dependencies":{"jspdf":"^2.5.2","html2canvas":"^1.4.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/html2multipagepdf_2.0.0_1734786525560_0.17479150992605308","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"name":"@abhisek507/html2multipagepdf","version":"2.0.1","keywords":["html2pdf","html2multipagepdf","jspdf"],"author":{"name":"abhisek507"},"license":"MIT","_id":"@abhisek507/html2multipagepdf@2.0.1","maintainers":[{"name":"abhisek507","email":"abhisek.dutta.507@gmail.com"}],"homepage":"https://github.com/abhisekdutta507/html2multipagepdf#readme","bugs":{"url":"https://github.com/abhisekdutta507/html2multipagepdf/issues"},"dist":{"shasum":"99b07adf3aca7f593fc6d7f92fdee0d67af8c254","tarball":"https://registry.npmjs.org/@abhisek507/html2multipagepdf/-/html2multipagepdf-2.0.1.tgz","fileCount":9,"integrity":"sha512-FFawcOtykzcnN0x3XNkZlTbldKRpL0nFMzYHQr3u1xNCNOafgUelVBPexGPUVL2F+FV9A+doAmAdbas9QNuOww==","signatures":[{"sig":"MEUCIQCtXYmz5WictBIcQOzR2T9/eC89s0oGlo2ixiTQ/pxR3AIgGzIWYvZVgiHSbv4j8rIaPbUlaOOs917vVa8d7oWCmd0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20139},"main":"index.js","gitHead":"8b21696e4789e8d54a0861456a6a552de360de63","scripts":{},"_npmUser":{"name":"abhisek507","email":"abhisek.dutta.507@gmail.com"},"repository":{"url":"git+https://github.com/abhisekdutta507/html2multipagepdf.git","type":"git"},"_npmVersion":"6.14.13","description":"Convert a pretty looking HTML template into a multipage PDF file.","directories":{},"_nodeVersion":"14.17.0","dependencies":{"jspdf":"^2.5.2","html2canvas":"^1.4.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/html2multipagepdf_2.0.1_1734863995492_0.9034758171979991","host":"s3://npm-registry-packages-npm-production"}},"2.0.2":{"name":"@abhisek507/html2multipagepdf","version":"2.0.2","keywords":["html2pdf","html2multipagepdf","jspdf"],"author":{"name":"abhisek507"},"license":"MIT","_id":"@abhisek507/html2multipagepdf@2.0.2","maintainers":[{"name":"abhisek507","email":"abhisek.dutta.507@gmail.com"}],"homepage":"https://github.com/abhisekdutta507/html2multipagepdf#readme","bugs":{"url":"https://github.com/abhisekdutta507/html2multipagepdf/issues"},"dist":{"shasum":"cadc0e9196a0e718065690487f1693d149c0e0f6","tarball":"https://registry.npmjs.org/@abhisek507/html2multipagepdf/-/html2multipagepdf-2.0.2.tgz","fileCount":10,"integrity":"sha512-Wi4VLd3g1ZmwyTPpVioI3J22MQ3HgSBZ+m85aBaXgDLspUt31qUJ2VfyiYketpb+yfAHT8c8Hp0AShAL6hu46w==","signatures":[{"sig":"MEUCIEtaEgz/xhSZ8v5vHJPXAKrlwchiMaQIvJb+TLf0nuWNAiEApX5xZugREmBTr+XsjCV7pdLjsiVwjivlny1Y2Bxm/Ck=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20521},"main":"index.js","gitHead":"2a1ee2ce6be4fbc3c27f94c37aac53ed47959605","scripts":{},"_npmUser":{"name":"abhisek507","email":"abhisek.dutta.507@gmail.com"},"repository":{"url":"git+https://github.com/abhisekdutta507/html2multipagepdf.git","type":"git"},"_npmVersion":"6.14.13","description":"Convert a pretty looking HTML template into a multipage PDF file.","directories":{},"_nodeVersion":"14.17.0","dependencies":{"jspdf":"^2.5.2","html2canvas":"^1.4.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/html2multipagepdf_2.0.2_1734866745337_0.5179573204788002","host":"s3://npm-registry-packages-npm-production"}},"2.0.3":{"name":"@abhisek507/html2multipagepdf","version":"2.0.3","keywords":["html2pdf","html2multipagepdf","jspdf"],"author":{"name":"abhisek507"},"license":"MIT","_id":"@abhisek507/html2multipagepdf@2.0.3","maintainers":[{"name":"abhisek507","email":"abhisek.dutta.507@gmail.com"}],"homepage":"https://github.com/abhisekdutta507/html2multipagepdf#readme","bugs":{"url":"https://github.com/abhisekdutta507/html2multipagepdf/issues"},"dist":{"shasum":"1b13c0f0133691492b324d294dce8c4629e6e24e","tarball":"https://registry.npmjs.org/@abhisek507/html2multipagepdf/-/html2multipagepdf-2.0.3.tgz","fileCount":10,"integrity":"sha512-nPMmiBlQ7Jasf3JuvACnAqoTSGXzw4IZoxG81kbDaTbirq0Qo2GpLQJjBx4Mzv8CRRNrMvZD9q/omtMZ6t8J0Q==","signatures":[{"sig":"MEUCIQDeasargOJIbJFA6aZgcgyyPyFsmGWe69qBa49AVzG6HgIgL8MXL0FiH87bnMejbZHY/MTIFImjQYoHtPxvxfMNhKg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20953},"main":"index.js","gitHead":"4d916800ab659878565968964b644172aa396e1a","scripts":{},"_npmUser":{"name":"abhisek507","email":"abhisek.dutta.507@gmail.com"},"repository":{"url":"git+https://github.com/abhisekdutta507/html2multipagepdf.git","type":"git"},"_npmVersion":"6.14.13","description":"Convert a pretty looking HTML template into a multipage PDF file.","directories":{},"_nodeVersion":"14.17.0","dependencies":{"jspdf":"^2.5.2","html2canvas":"^1.4.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/html2multipagepdf_2.0.3_1734868903469_0.6935197175753238","host":"s3://npm-registry-packages-npm-production"}},"2.0.4":{"name":"@abhisek507/html2multipagepdf","version":"2.0.4","keywords":["html2pdf","html2multipagepdf","jspdf"],"author":{"name":"abhisek507"},"license":"MIT","_id":"@abhisek507/html2multipagepdf@2.0.4","maintainers":[{"name":"abhisek507","email":"abhisek.dutta.507@gmail.com"}],"homepage":"https://github.com/abhisekdutta507/html2multipagepdf#readme","bugs":{"url":"https://github.com/abhisekdutta507/html2multipagepdf/issues"},"dist":{"shasum":"b62850bfd56c8056c3cabde8db5fdab991dfdc04","tarball":"https://registry.npmjs.org/@abhisek507/html2multipagepdf/-/html2multipagepdf-2.0.4.tgz","fileCount":10,"integrity":"sha512-S7JJg37Zt1gRsJPb1/9T/6lXWkG+YhQUplZX2HpBOmR2JPHS/3TV2kpmkK1/HTQz5+wg9Ou8OJ04r3LZ+GIRKQ==","signatures":[{"sig":"MEQCIH0lgzDOtp8jU30Ce8K2SPBRlfopkrk8ozBPR+4+GDjoAiB6xU58TNivXu8aZ9K9CQLMHeobcrnogDkeK+w+ArsjZA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21175},"main":"index.js","gitHead":"6bb2a933455559c4cf7f4ab3f39d272f0dd82b2c","scripts":{},"_npmUser":{"name":"abhisek507","email":"abhisek.dutta.507@gmail.com"},"repository":{"url":"git+https://github.com/abhisekdutta507/html2multipagepdf.git","type":"git"},"_npmVersion":"6.14.13","description":"Convert a pretty looking HTML template into a multipage PDF file.","directories":{},"_nodeVersion":"14.17.0","dependencies":{"jspdf":"^2.5.2","html2canvas":"^1.4.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/html2multipagepdf_2.0.4_1734876258407_0.009006809577627006","host":"s3://npm-registry-packages-npm-production"}},"2.0.5":{"name":"@abhisek507/html2multipagepdf","version":"2.0.5","keywords":["html2pdf","html2multipagepdf","jspdf"],"author":{"name":"abhisek507"},"license":"MIT","_id":"@abhisek507/html2multipagepdf@2.0.5","maintainers":[{"name":"abhisek507","email":"abhisek.dutta.507@gmail.com"}],"homepage":"https://github.com/abhisekdutta507/html2multipagepdf#readme","bugs":{"url":"https://github.com/abhisekdutta507/html2multipagepdf/issues"},"dist":{"shasum":"070e9c1ebfb79d038ca162000045daaa8b16ff56","tarball":"https://registry.npmjs.org/@abhisek507/html2multipagepdf/-/html2multipagepdf-2.0.5.tgz","fileCount":10,"integrity":"sha512-2jQghAzHDShyWbNzAEpLHjC0Ql6PMwDmdA5pZcy97V7NNdNaL0DaqvpM7YJoAiG6XvGyAQof/UD9zZOa486Nbw==","signatures":[{"sig":"MEQCIBKZ+p6ZTavH7BFtc1qFFYK72LzvXJWzWCnMc799Wp21AiBq0t7ByIn9HCdc+W2WzPh2+/DnaPoMq/zszyAvV43OgA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21078},"main":"index.js","types":"./index.d.ts","gitHead":"a624c47622bc26d83a9c61fd661bbf7523ae5747","scripts":{},"_npmUser":{"name":"abhisek507","email":"abhisek.dutta.507@gmail.com"},"repository":{"url":"git+https://github.com/abhisekdutta507/html2multipagepdf.git","type":"git"},"_npmVersion":"10.9.0","description":"Convert a pretty looking HTML template into a multipage PDF file.","directories":{},"_nodeVersion":"22.11.0","dependencies":{"jspdf":"^2.5.2","html2canvas":"^1.4.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/html2multipagepdf_2.0.5_1734880218926_0.26865147077949403","host":"s3://npm-registry-packages-npm-production"}},"2.0.6":{"name":"@abhisek507/html2multipagepdf","version":"2.0.6","keywords":["html2pdf","html2multipagepdf","jspdf"],"author":{"name":"abhisek507"},"license":"MIT","_id":"@abhisek507/html2multipagepdf@2.0.6","maintainers":[{"name":"abhisek507","email":"abhisek.dutta.507@gmail.com"}],"homepage":"https://github.com/abhisekdutta507/html2multipagepdf#readme","bugs":{"url":"https://github.com/abhisekdutta507/html2multipagepdf/issues"},"dist":{"shasum":"db1f690bed2ff24ab4d4d69f60159d65a745dd70","tarball":"https://registry.npmjs.org/@abhisek507/html2multipagepdf/-/html2multipagepdf-2.0.6.tgz","fileCount":10,"integrity":"sha512-bHMSkJxtrE2aU6rDF+lD7k7OX1S+eYwx6LNuEZSNEF39czg3/Clqs4X1plYKHDWIr9JM2A1FVntbJvOLWAGeCg==","signatures":[{"sig":"MEYCIQCSR8Vln4wvGfcGCQeWsJUMW1JLIH1M2GYCBklU4AKq6QIhAJ5VFRw8+HCBBVWYhMKzy1uCFTWMumQJEZpqBl5vJuV4","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21053},"main":"index.js","types":"./index.d.ts","gitHead":"5f5878489e687d03f9da9fe7f72399b62b00d04f","scripts":{},"_npmUser":{"name":"abhisek507","email":"abhisek.dutta.507@gmail.com"},"repository":{"url":"git+https://github.com/abhisekdutta507/html2multipagepdf.git","type":"git"},"_npmVersion":"10.9.0","description":"Convert a pretty looking HTML template into a multipage PDF file.","directories":{},"_nodeVersion":"22.11.0","dependencies":{"jspdf":"^2.5.2","html2canvas":"^1.4.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/html2multipagepdf_2.0.6_1734880959658_0.4278117559796093","host":"s3://npm-registry-packages-npm-production"}},"2.0.7":{"name":"@abhisek507/html2multipagepdf","version":"2.0.7","keywords":["html2pdf","html2multipagepdf","jspdf"],"author":{"name":"abhisek507"},"license":"MIT","_id":"@abhisek507/html2multipagepdf@2.0.7","maintainers":[{"name":"abhisek507","email":"abhisek.dutta.507@gmail.com"}],"homepage":"https://github.com/abhisekdutta507/html2multipagepdf#readme","bugs":{"url":"https://github.com/abhisekdutta507/html2multipagepdf/issues"},"dist":{"shasum":"a372ea2fd214d309966546832f121109aec13501","tarball":"https://registry.npmjs.org/@abhisek507/html2multipagepdf/-/html2multipagepdf-2.0.7.tgz","fileCount":10,"integrity":"sha512-Jz8Si6X96jqrXXIUbO9X/Doy2f2e0Y17cXVJuQi7nmJ0Ph6pkea/vLTdkF214mtdCre1NdOeABe5lbgtRzhoQw==","signatures":[{"sig":"MEUCIQC0C7toqMiYn63O2pcDenC+EoMPZ7AtXiqCq9o1EyejXAIgcNzL71xJ+0ySubRFQqpiEV7uoVQW+0UobSCtvGz1mKc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21406},"main":"index.js","types":"./index.d.ts","gitHead":"422519f2d1e89cc028cfe49d5db64e3434c858e3","scripts":{},"_npmUser":{"name":"abhisek507","email":"abhisek.dutta.507@gmail.com"},"repository":{"url":"git+https://github.com/abhisekdutta507/html2multipagepdf.git","type":"git"},"_npmVersion":"10.9.0","description":"Convert a pretty looking HTML template into a multipage PDF file.","directories":{},"_nodeVersion":"22.11.0","dependencies":{"jspdf":"^2.5.2","html2canvas":"^1.4.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/html2multipagepdf_2.0.7_1734883005452_0.5006444569216095","host":"s3://npm-registry-packages-npm-production"}},"2.0.8":{"name":"@abhisek507/html2multipagepdf","version":"2.0.8","keywords":["html2pdf","html2multipagepdf","jspdf"],"author":{"name":"abhisek507"},"license":"MIT","_id":"@abhisek507/html2multipagepdf@2.0.8","maintainers":[{"name":"abhisek507","email":"abhisek.dutta.507@gmail.com"}],"homepage":"https://github.com/abhisekdutta507/html2multipagepdf#readme","bugs":{"url":"https://github.com/abhisekdutta507/html2multipagepdf/issues"},"dist":{"shasum":"ee4af49f365e262484f7941325f041cbf69f6996","tarball":"https://registry.npmjs.org/@abhisek507/html2multipagepdf/-/html2multipagepdf-2.0.8.tgz","fileCount":9,"integrity":"sha512-7rlEDDPuDN/5YO18eaZold+Ps9eVoBZ6DdKVri94gfRP2hcBMA7PcAfdnCZMkmPAIntqNMpg40/N8IZe3DP3iQ==","signatures":[{"sig":"MEYCIQCVMMBvj+KyMAmXLWky7ezU6a5mEfFA9xL4bXeI/tZCAgIhAOWCGCDOczfti15fFc5yljCKSL1nvdh54iWu8jDPtoCM","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":24870},"main":"index.js","types":"./index.d.ts","gitHead":"e9b22b9ee0630629422f0bc6b32646c472764049","scripts":{},"_npmUser":{"name":"abhisek507","email":"abhisek.dutta.507@gmail.com"},"repository":{"url":"git+https://github.com/abhisekdutta507/html2multipagepdf.git","type":"git"},"_npmVersion":"10.9.0","description":"Convert a pretty looking HTML template into a multipage PDF file.","directories":{},"_nodeVersion":"22.11.0","dependencies":{"jspdf":"^2.5.2","html2canvas":"^1.4.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/html2multipagepdf_2.0.8_1734887094259_0.7399276274201583","host":"s3://npm-registry-packages-npm-production"}},"2.0.9":{"name":"@abhisek507/html2multipagepdf","version":"2.0.9","keywords":["html2pdf","html2multipagepdf","jspdf"],"author":{"name":"abhisek507"},"license":"MIT","_id":"@abhisek507/html2multipagepdf@2.0.9","maintainers":[{"name":"abhisek507","email":"abhisek.dutta.507@gmail.com"}],"homepage":"https://abhisekdutta.com/experiments/html2pdf","bugs":{"url":"https://github.com/abhisekdutta507/html2multipagepdf/issues"},"dist":{"shasum":"a6a330d74b6ae21bd2838195cc397418038abd20","tarball":"https://registry.npmjs.org/@abhisek507/html2multipagepdf/-/html2multipagepdf-2.0.9.tgz","fileCount":9,"integrity":"sha512-xRT45m7N2CZr8zr6c2ihAWFESrtkhYDKjQ3FSR1l+wu2+WDTMPywi3ZZF5e98LU8Vgho82M+c+pOJVb55OVSWg==","signatures":[{"sig":"MEUCIQDkR6u2CLsOPQx3r6FJCBvAS9H0tPe+yx8CvB3smMgieAIgXkg71ChZiqJVnIgsxImMliVnzo8xqLt0gLuL9h1mG3E=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26112},"main":"index.js","types":"./index.d.ts","gitHead":"1fb668aa5aedbfa7d7fd891f087d8ce1abd3b510","scripts":{},"_npmUser":{"name":"abhisek507","email":"abhisek.dutta.507@gmail.com"},"repository":{"url":"git+https://github.com/abhisekdutta507/html2multipagepdf.git","type":"git"},"_npmVersion":"10.9.0","description":"Convert a pretty looking HTML template into a multipage PDF file.","directories":{},"_nodeVersion":"22.12.0","dependencies":{"jspdf":"^2.5.2","html2canvas":"^1.4.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/html2multipagepdf_2.0.9_1735714243356_0.4600051346461642","host":"s3://npm-registry-packages-npm-production"}},"2.1.0":{"name":"@abhisek507/html2multipagepdf","version":"2.1.0","keywords":["html2pdf","html2multipagepdf","jspdf"],"author":{"name":"abhisek507"},"license":"MIT","_id":"@abhisek507/html2multipagepdf@2.1.0","maintainers":[{"name":"abhisek507","email":"abhisek.dutta.507@gmail.com"}],"homepage":"https://abhisekdutta.com/experiments/html2pdf","bugs":{"url":"https://github.com/abhisekdutta507/html2multipagepdf/issues"},"dist":{"shasum":"fbc8d74f373f5518001ab17d23ba9c695aa3c8fb","tarball":"https://registry.npmjs.org/@abhisek507/html2multipagepdf/-/html2multipagepdf-2.1.0.tgz","fileCount":9,"integrity":"sha512-mbmbyFr/lHQWmV8zAoNcTVc7JKh45a1rB1VVLKJNW2svWeTooXLL1jqwh3HgIyF7xn3ILgkS5En/AAKwxbVJmw==","signatures":[{"sig":"MEUCIFph5giv5udYat2hf7uwZsF5XGNf3anSM9vb3Jp+/ddoAiEAr9UIMWRUP2yWT2KaeZXsoIVfH7sU/pha7Fl9bcloX5I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26748},"main":"index.js","types":"./index.d.ts","gitHead":"c62e08e075d94bfcd6760f3883ab7ea221d79794","scripts":{},"_npmUser":{"name":"abhisek507","email":"abhisek.dutta.507@gmail.com"},"repository":{"url":"git+https://github.com/abhisekdutta507/html2multipagepdf.git","type":"git"},"_npmVersion":"10.9.0","description":"Convert a pretty looking HTML template into a multipage PDF file.","directories":{},"_nodeVersion":"22.12.0","dependencies":{"jspdf":"^2.5.2","html2canvas":"^1.4.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/html2multipagepdf_2.1.0_1735750522299_0.5014324649370334","host":"s3://npm-registry-packages-npm-production"}},"2.1.1":{"name":"@abhisek507/html2multipagepdf","version":"2.1.1","description":"Convert a pretty looking HTML template into a multipage PDF file.","main":"index.js","scripts":{},"repository":{"type":"git","url":"git+https://github.com/abhisekdutta507/html2multipagepdf.git"},"keywords":["html2pdf","html2multipagepdf","jspdf"],"author":{"name":"abhisek507"},"license":"MIT","bugs":{"url":"https://github.com/abhisekdutta507/html2multipagepdf/issues"},"homepage":"https://abhisekdutta.com/experiments/html2pdf","dependencies":{"html2canvas":"^1.4.1","jspdf":"^2.5.2"},"_id":"@abhisek507/html2multipagepdf@2.1.1","gitHead":"6e014763d994ca1fb950807106faeea2e3ed663c","types":"./index.d.ts","_nodeVersion":"18.20.5","_npmVersion":"10.8.2","dist":{"integrity":"sha512-eTkeCgUtKI3Av0uUcF302L6oATSTUGP9vUR4IbkhX0dH0EgBYpo7/8fuy0qoHBqByT6YVh6Y/6QNhUKCwYfcyg==","shasum":"d44897215d1f04ef897349c971f01456dcff033a","tarball":"https://registry.npmjs.org/@abhisek507/html2multipagepdf/-/html2multipagepdf-2.1.1.tgz","fileCount":9,"unpackedSize":30979,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCkVbS669sPZPzyP1rPVKbTVymbFfeHcE0Y5b9OX1FTMAIgBhWqbN4CkodhOzPMqqjUUlglEdrGmcy607zjVTlmuQ0="}]},"_npmUser":{"name":"abhisek507","email":"abhisek.dutta.507@gmail.com"},"directories":{},"maintainers":[{"name":"abhisek507","email":"abhisek.dutta.507@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/html2multipagepdf_2.1.1_1747677039065_0.42192702465411225"},"_hasShrinkwrap":false}},"time":{"created":"2024-12-20T19:15:11.487Z","modified":"2025-05-19T17:50:39.425Z","1.0.0":"2024-12-20T19:15:11.771Z","2.0.0":"2024-12-21T13:08:45.867Z","2.0.1":"2024-12-22T10:39:55.678Z","2.0.2":"2024-12-22T11:25:45.522Z","2.0.3":"2024-12-22T12:01:43.682Z","2.0.4":"2024-12-22T14:04:18.648Z","2.0.5":"2024-12-22T15:10:19.104Z","2.0.6":"2024-12-22T15:22:39.873Z","2.0.7":"2024-12-22T15:56:45.627Z","2.0.8":"2024-12-22T17:04:54.487Z","2.0.9":"2025-01-01T06:50:43.535Z","2.1.0":"2025-01-01T16:55:22.518Z","2.1.1":"2025-05-19T17:50:39.246Z"},"bugs":{"url":"https://github.com/abhisekdutta507/html2multipagepdf/issues"},"author":{"name":"abhisek507"},"license":"MIT","homepage":"https://abhisekdutta.com/experiments/html2pdf","keywords":["html2pdf","html2multipagepdf","jspdf"],"repository":{"type":"git","url":"git+https://github.com/abhisekdutta507/html2multipagepdf.git"},"description":"Convert a pretty looking HTML template into a multipage PDF file.","maintainers":[{"name":"abhisek507","email":"abhisek.dutta.507@gmail.com"}],"readme":"# html2multipagepdf v2.1.1\n\nEasily convert HTML templates to PDF in React.js/Next.js. Generate dynamic, server-side PDFs for invoices, reports, or documents with seamless integration into your React.js/Next.js application.\n\n## [Live Demo](https://abhisekdutta.com/experiments/html2pdf) | [Example A](https://github.com/abhisekdutta507/documentation/tree/main/reactjs/implement-html-to-pdf-on-reactjs-or-javascript) | [Example B](https://bitbucket.org/abhisekdutta507/react-html-to-pdf/src/main/)\n\n## Installation\n\nInstall npm globally (ignore if already installed):\n\n```bash\nnpm i -g npm\n```\n\nInstall the `html2multipagepdf` library:\n\n```bash\nnpm i @abhisek507/html2multipagepdf@2.1.1\n```\n\n## Setup\n\nIn React.js/Next.js/Vanilla JavaScript:\n\n```js\nimport { generatePDF, PageConfig } from \"@abhisek507/html2multipagepdf\";\nimport {\n  A4,\n  Quality,\n  RegularPageSelector,\n  PageWithMaxPossibleWidthSelector,\n  PageElementSelector,\n  JSPDFOutputType,\n  PageNoElementSelector,\n  CustomPageNoElementSelector,\n} from \"@abhisek507/html2multipagepdf/constants\";\n```\n\nCSS styles:\n\n```css\n.hidden {\n  display: none;\n}\n```\n\nWrap the JSX/HTML template:\n\n```jsx\nconst JSX = () => (\n  <div className=\"\">\n    <div className={`flex flex-col ${RegularPageSelector}`}>\n      <div className=\"header\">\n        {/* header section */}\n\n        <div className='flex align-items-center gap-4'>\n          <span>Page</span>\n          <span className={CustomPageNoElementSelector}></span>\n        </div>\n      </div>\n\n      <div className={`${PageElementSelector}`}>\n        {/* content row 1 */}\n      </div>\n\n      <div className={`${PageElementSelector}`}>\n        {/* content row 2 */}\n      </div>\n\n      {/* ... */}\n\n      <div className={`${PageElementSelector}`}>\n        {/* content row n */}\n      </div>\n\n      <div className=\"footer\">\n        {/* footer section */}\n      </div>\n    </div>\n\n    <div className={`flex flex-col ${PageWithMaxPossibleWidthSelector}`}>\n      <div className=\"header\">\n        {/* header section */}\n      </div>\n\n      <div className={`${PageElementSelector}`}>\n        {/* content row 1 */}\n      </div>\n\n      <div className={`${PageElementSelector}`}>\n        {/* content row 2 */}\n      </div>\n\n      {/* ... */}\n\n      <div className={`${PageElementSelector}`}>\n        {/* content row n */}\n      </div>\n\n      <div className=\"footer\">\n        {/* footer section */}\n      </div>\n    </div>\n  </div>\n);\n```\n\n## Generate a PDF\n\n```js\nimport { generatePDF, PageConfig } from \"@abhisek507/html2multipagepdf\";\nimport {\n  A4,\n  Quality,\n  RegularPageSelector,\n  PageWithMaxPossibleWidthSelector,\n  PageElementSelector,\n  JSPDFOutputType,\n} from \"@abhisek507/html2multipagepdf/constants\";\n\nconst handleGeneratePDF = async () => {\n  const pageSelectors = [RegularPageSelector, PageWithMaxPossibleWidthSelector];\n  const pageOptions = A4; // A4 || Letter || Legal\n  const elementSelector = PageElementSelector;\n  const quality = Quality[\"100\"]; // quality can be 100% || 90% || 80% ... || 10%\n  /**\n   * @type {PageConfig}\n   */\n  const pageConfig = {\n    quality,\n    alignCenter: true,\n  };\n\n  try {\n    const pdf = await generatePDF(pageSelectors, pageOptions, elementSelector, pageConfig);\n    const time = new Date().getTime();\n    pdf.save(`${name}-${time}.pdf`);\n\n    // base64 image\n    const output = pdf.output(JSPDFOutputType.datauristring);\n    return output;\n  } catch (e) {\n\n  }\n};\n```\n\n## What are pageSelectors?\n\nA page selector is a `css class` will be used by the script to determine a page. There are 2 types of pageSelectors,\n\n1. [RegularPageSelector](?tab=readme-ov-file#regularpageselector)\n2. [PageWithMaxPossibleWidthSelector](?tab=readme-ov-file#pagewithmaxpossiblewidthselector)\n\n### RegularPageSelector\n\nThe PDF pages generated using `RegularPageSelector` can have `dis-similar content width`. But the script will try to utilize most of the available PDF page width for the content.\n\n### PageWithMaxPossibleWidthSelector\n\nThe PDF pages will have `exact same content width`. To achieve this behaviour the script might not use most of the PDF page width.\n\nFor **e.g**: 2 pages are generated using `PageWithMaxPossibleWidthSelector`. The 1st page content has a width `A` & 2nd page content has a width `B`.\n\nLet's consider `A` is smaller than `B` then both the page contents will have width `A` to make sure they are of `exact same width`.\n\n### Best practices\n\n1. We must use `PageElementSelector` inside the `PageWithMaxPossibleWidthSelector` or `RegularPageSelector`.\n2. As many `PageElementSelector` we use inside 1 `pageSelector` the more better PDF output we can expect.\n3. The `PageElementSelector` must not have more height than the available page height.\n\n## Display page number\n\nWe can either display each page number or custom page number,\n\n1. [PageNoElementSelector](?tab=readme-ov-file#pagenoelementselector)\n2. [CustomPageNoElementSelector](?tab=readme-ov-file#custompagenoelementselector)\n\n### PageNoElementSelector\n\nThe page no will be conted from first to last. Whenever the className `PageNoElementSelector` will be there on a page, it will be updated with the page no.\n\n### CustomPageNoElementSelector\n\nThe `CustomPageNoElementSelector` will allow us to display the page numbers in a controlled sequence. For eg. page 1 & 3 have the className `CustomPageNoElementSelector`, then `page 1` will be considered as `page 1` but `page 3` will be considered as `page 2`. \n\n## Credits\n\n1. [html2canvas](https://www.npmjs.com/package/html2canvas)\n2. [jsPDF](https://www.npmjs.com/package/jspdf)\n\n\n## Source Code\n\nSee the [package source](https://github.com/abhisekdutta507/html2multipagepdf) for more details.\n\n## Support\n\nTested in Chrome 131, Firefox 133, Safari 18, DuckDuckGo 1.118.0.\n","readmeFilename":"README.md"}