On Sat, Mar 14, 2026 at 10:21:58PM +0000, John Scott wrote:

> I can't find which WebKit binary package(s) get this copy of PDF.js
> bundled into them or where they are.

Those files are bundled inside the WebKitGTK library as a GResource:

$ gresource list /usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4 | grep pdfjs

And if I'm not wrong they are loaded at runtime from this file:

   Source/WebCore/loader/soup/ResourceLoaderSoup.cpp

I suppose it's possible to have a build flag to use an external PDF.js
library, but that's a change that should be discussed with upstream in
https://bugs.webkit.org/

Berto

Reply via email to