jsPDF
svg2pdf.js
Our great sponsors
jsPDF | svg2pdf.js | |
---|---|---|
31 | 5 | |
28,377 | 625 | |
1.0% | 3.5% | |
0.0 | 5.8 | |
29 days ago | 19 days ago | |
JavaScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
jsPDF
-
Best HTML to PDF libraries for Node.js
jsPDF is a popular JavaScript PDF generator that allows users to generate PDF files in the web browser dynamically. The library is well-maintained, stable, easy to use, and has rich documentation.
-
Seeking Alternative jQuery Plugin for Exporting ASP.NET Web Form HTML Table to Excel and PDF
I haven't had to generate PDF files from the browser, but jsPDF looks promising.
-
jsPDF new version not working
So, as advised on the github page https://github.com/parallax/jsPDF i tried to source the new version of jsPDF using either the first or second src that you see in comment in the code below.
-
trouble with jsPD library
was working fine. But it seems this version does not have the function to do dashed lines, so i wanted a newer version. I tried downloading the folder of the newest one, or tu put : as mentionned in this page : https://github.com/parallax/jsPDF, but now i got a bug when i try to create the pdf and the code stops at the instruction var doc = new jsPDF(); I hope have i been clear, sorry i'm kind of trying out things...
-
Data grid with export and print features
You can use the .NET built-in datagrid, write your own .csv export (it's about 15 lines of code), and use jsPDF to convert the datagrid content to pdf using JavaScript.
- Can I stick a complex web app to a WordPress site?
-
Bibliotecas NodeJS incríveis que você não tem ideia que existem
🔀 Repositório no GitHub
- De HTML a PDF
- Najbolji JS library za generiranje PDF dokumenata?
-
Google/tracker free PDF markup editor (stylus) for android
Didn't try but there is https://github.com/mozilla/pdf.js to read and https://github.com/parallax/jsPDF to write back so I imagine it could all be done in the browser, no app required. I'm not sure if there is already a project that combine both and use the canvas as a sketching support but have a look and if there isn't one I might prototype as it could be interesting for the PineNote.
svg2pdf.js
-
Is node the right choice for HTML to PDF conversion?
You should check out Vercel's Satori package. You can generate SVGs from JSX without a chromium instance. Pair that with something like https://github.com/yWorks/svg2pdf.js/ and you might be onto something.
- Forking Chrome to Turn HTML into SVG
-
What's a good way to deliver printable reports?
If you need to print to exact dimensions, you MUST use PDF. This was what i needed, so I draw everything to an SVG, and made sure that my units were in "pt" (that is 1px = 1/72inch). When creating the PDF, I specified that the units were in "pt" and used https://github.com/yWorks/svg2pdf.js/ to convert the SVG. Note that this has major disadvantages. SVG does not support word wrap by default; you'll have to write your own. You'll also have to get users to specify a paper size in your app. Again, test, test, test. If you want to preview the PDF, not all browsers can display PDF natively (looking at you Android)! Some browsers won't print exact size even in PDF (Android). Some browsers will reduce page margins if printing from an inline iframe preview (Safari). You need annoying workarounds. Like downloading instead of previewing the file on Android, or making sure to always open a new tab on Safari.
-
Creating a PDF
I used it with https://github.com/yWorks/svg2pdf.js/ which makes it easy to draw diagrams too.
-
Guest WiFi using a QR code
Hmm, after tinkering around a bit, I think according to https://github.com/yWorks/svg2pdf.js/issues/82 , the mask element in the giraffe SVGs is not supported in the PDF converter. It is just dropped, leafing the qraffe rather qr-less.
But I sadly know neither svg enough to think up an alternative approach, or a JS/TS dev enough to see if there are other libraries.
What are some alternatives?
pdfmake - Client/server side PDF printing in pure JavaScript
pdf-lib - Create and modify PDF documents in any JavaScript environment
PDF.js - PDF Reader in JavaScript
canvas2svg - Translates HTML5 Canvas draw commands to SVG
PDFKit - A JavaScript PDF generation library for Node and the browser
dungeonz - Everything for the game Rogueworld. [Moved to: https://github.com/Arcanorum/rogueworld]
react-pdf - 📄 Create PDF files using React
Dompdf - HTML to PDF converter for PHP
satori - Enlightened library to convert HTML and CSS to SVG
Papa Parse - Fast and powerful CSV (delimited text) parser that gracefully handles large files and malformed input
TypeStat - Converts JavaScript to TypeScript and TypeScript to better TypeScript. 🧫