mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-09-16 07:48:35 -04:00
adds --dump screen.pdf and CDP's Page.printToPDF (along with IO.read and IO.read). Builds ontop of https://github.com/lightpanda-io/browser/pull/3231 This generates a text-based PDF, not just our PNG placed into a PDF. The biggest change to the existing (isolated) code was adding href information so that links are actually clickable. Like 3231 the hard parts are all Claude but isolated. The one place it diverged from the plan was NOT using the subsetter rust crate for trimming the size of the embedded font. It felt that the dependencies were too much (e.g. a second version of skrifa, ...). One subsetter was removed, the pdf rendering, while still a blackbox, was moved from Rust to Zig (pdf.zig), which is kind of nice.