![]() ![]() There are 15 other projects in the npm registry using html-pdf-node. Note that neither a DOM or canvas library is needed. Using with node.js canvas2pdf works with node.js. Start using html-pdf-node in your project by running npm i html-pdf-node. PDFKit blob-stream required when using in a web browser. Latest version: 1.0.8, last published: a year ago. ![]() We know about the awesome PDFKIT for node.js, PDFKit is a PDF document generation library for Node and the browser that makes creating complex, multi-page, printable documents easy. The following code should generate a simple PDF document with some text: var PDFDocument, doc ĭoc.pipe(fs.createWriteStream('output.pdf')) ĭoc.fontSize(25).text('Some text with an embedded font!', 100, 100) ĭoc.addPage().fontSize(25).text('Here is some vector graphics.', 100, 100) ĭoc.save().moveTo(100, 150).lineTo(100, 250).lineTo(200, 250).fill("#FF3300") ĭoc.scale(0.6).translate(470, -380).path('M 250,75 L 323,301 131,161 369,161 177,301 z').fill('red', 'even-odd').restore() ĭoc.addPage().fillColor("blue").text('Here is a link!', 100, 100). Convert any html content or html page to PDF. Have you ever tried to create PDFs with complicated and fancy charts using PDFKit? such a **** task isn't ?. GitHub - PejmanNik/puppeteer-report: Convert HTML to PDF by Puppeteer with support of adding a custom header, footer, and page number PejmanNik / puppeteer-report Public Notifications Fork 20 Star 121 Code Actions Projects Insights master 4 branches 12 tags Pejman Nikram bump version to 3.1.0 6e9924b on 49 commits. ![]()
0 Comments
Leave a Reply. |