Hacker News new | past | comments | ask | show | jobs | submit login

I have been building a custom PDF generator for my Remarkable tablet using jsPDF. Something that has surprised me is how hard it is to keep the file size small with tools like this.

Its fun and fast to generate things but when you get to 1000+ pages for something like a year long planner the document can quickly balloon past 70 MB.

So far I have kept my 750-1300 page planner between 3-7 MB.

I will give this a try and compare.




Please report back and let us know!


733 pages with the same cover image but without any calendaring line art comes in at 2049 KB. Opening that PDF back up in Chrome and using print "save as pdf" results in 1760 KB so there is some compression happening the second time around.

Overall this looks very promising!


I would think that a PDF file of 700 blank pages could exceed 2 MiB.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: