_______ __ _______
| | |.---.-..----.| |--..-----..----. | | |.-----..--.--.--..-----.
| || _ || __|| < | -__|| _| | || -__|| | | ||__ --|
|___|___||___._||____||__|__||_____||__| |__|____||_____||________||_____|
on Gopher (inofficial)
HTML Visit Hacker News on the Web
COMMENT PAGE FOR:
HTML Show HN: TinyPDF â 3kb pdf library (70x smaller than jsPDF)
wg0 wrote 19 min ago:
So essentially - it only works with Latin script? Because without
fonts, every other script is NOT going to render.
andai wrote 1 hour 0 min ago:
Back in the day I needed PDF export for some client thing. I can't
remember if I was using pdfjs or jspdf. I do however remember that it
was many thousands of lines of code, and yet, I had to lay out the
lines of text on the page manually.
My page layout code was like 50 lines of code. And I remember
thinking... OK they already wrote 8,000 lines of code... They couldn't
have added 50 more?!
400 lines though. Respect. I will take a proper look at this when I
recover from burnout :)
croisillon wrote 1 hour 51 min ago:
is it related to one of the other 10 products called TinyPDF?
esafak wrote 1 hour 33 min ago:
Yes, obviously: it's a tiny PDF library.
anilgulecha wrote 10 hours 25 min ago:
Great exercize, but for most use cases - people will continue reaching
for jsPDF.
I think if you have a markdown->PDF function included, where I can send
in markdown and get PDF, that would solve quite many needs, and would
be useful.
lulzx wrote 9 hours 40 min ago:
I have added it!
nebezb wrote 46 min ago:
Wow youâre not kidding. That was fast.
HTML [1]: https://github.com/Lulzx/tinypdf/commit/961e6b602f19e125f2...
IntelliAvatar wrote 1 day ago:
3KB is wild. What features did you intentionally leave out to get this
small?
teaearlgraycold wrote 23 min ago:
It only supports Helvetica!
lysace wrote 1 hour 24 min ago:
Support for more than 7-bit ASCII characters. :)
wonger_ wrote 2 hours 7 min ago:
Not the author, but generating PDFs is much, much simpler than
parsing PDFs
DIR <- back to front page