Generating PDFs in #javascript for fun and profit!
▻https://hackernoon.com/generating-pdfs-in-javascript-for-fun-and-profit-c7af594cf697?source=rss
Up until recently, creating complex or elegant PDFs in Javascript has been challenging.Here I’m going to show you step-by-step the path of least resistance to beautiful PDFs. Spoiler: recently made possible by #docx to #pdf conversion in Javascript :-)What follows is some of what I will cover in my upcoming talk at PDF Association conference in Seattle in June.From 1000 feet, here are your three main alternatives:The first is to create the PDF directly, using pdfkit, jsPDF, or the higher level pdfmake. Pdfkit is like iText in the Java world. Pdfmake, based on pdfkit, has its own format for representing rich text; it converts this to PDF.The second is to create HTML, then convert that to PDF. These days probably using puppeteer.The third is to create a docx, then convert that to PDF.Put (...)