News for hackers. Stuff that matters.
Re:Simplest C++ Callback, from SumatraPDF by graemep on Monday June 16, 2025 @12:35AM (#44286645)
Large PDFs are very slow in browsers. I believe they all use pdf.js (or similar).
Re:Simplest C++ Callback, from SumatraPDF by cAtte_ on Monday June 16, 2025 @01:18AM (#44286799)
firefox uses pdf.js, but chromium uses pdfium and safari uses pdfkit
Re:Simplest C++ Callback, from SumatraPDF by graemep on Monday June 16, 2025 @04:57AM (#44287738)
PDFkit seems similar in that it is JS. Is it also slow?

I just tried a few PDFs in Chromium and PDFium seems to be much better than pdf.js - faster and handles forms more smoothly.

Re:Simplest C++ Callback, from SumatraPDF by fredoralive on Monday June 16, 2025 @05:25AM (#44287861)
PDFkit seems to be a name a few different things in stuff like node and ruby. I think the Apple PDFkit is probably just wrapping Apple’s in house PDF tech that Preview uses?
Re:Simplest C++ Callback, from SumatraPDF by graemep on Monday June 16, 2025 @07:20AM (#44288514)
It does not seem to have any requirements than JS - browser or Node. There is an online demo that works with Firefox on Linux so not wrapping anything else.
Re:Simplest C++ Callback, from SumatraPDF by cAtte_ on Monday June 16, 2025 @11:56AM (#44290792)
the pdfkit from the first google result doesn't seem to be related to apple's. what happened here is that "pdfkit" is a very generic name that happens to coincide with apple's convention of naming many of their frameworks something-kit (uikit, appkit, avkit, ...)