5 comments

  • wg04 minutes ago
    So essentially - it only works with Latin script? Because without fonts, every other script is NOT going to render.
  • andai44 minutes ago
    Back in the day I needed PDF export for some client thing. I can&#x27;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.<p>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&#x27;t have added 50 more?!<p>400 lines though. Respect. I will take a proper look at this when I recover from burnout :)
  • anilgulecha10 hours ago
    Great exercize, but for most use cases - people will continue reaching for jsPDF.<p>I think if you have a markdown-&gt;PDF function included, where I can send in markdown and get PDF, that would solve quite many needs, and would be useful.
    • lulzx9 hours ago
      I have added it!
      • nebezb30 minutes ago
        Wow you’re not kidding. That was fast.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;Lulzx&#x2F;tinypdf&#x2F;commit&#x2F;961e6b602f19e125f210500812aa81e49de1ac41" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Lulzx&#x2F;tinypdf&#x2F;commit&#x2F;961e6b602f19e125f210...</a>
  • IntelliAvatar1 day ago
    3KB is wild. What features did you intentionally leave out to get this small?
    • wonger_1 hour ago
      Not the author, but generating PDFs is much, much simpler than parsing PDFs
    • teaearlgraycold7 minutes ago
      It only supports Helvetica!
    • lysace1 hour ago
      Support for more than 7-bit ASCII characters. :)
  • croisillon1 hour ago
    is it related to one of the other 10 products called TinyPDF?
    • esafak1 hour ago
      Yes, obviously: it&#x27;s a tiny PDF library.