News for hackers. Stuff that matters.
Re:Skia Canvas: Browser-Less Implementation of the HTML Canv... by rafaelmn on Tuesday December 03, 2024 @03:10PM (#42310734)
Is Canvas really suitable for PDFs ? Afaik it's immediate mode bitmap graphics - so PDFs would just be embedded bitmaps ?
Re:Skia Canvas: Browser-Less Implementation of the HTML Canv... by adrianh on Tuesday December 03, 2024 @03:13PM (#42310766)
We do indeed generate vector PDFs, not embedded bitmaps.

Our graphics engine works with Canvas API instructions — like "draw a line from point (A,B) to (C,D)." This API is small enough and low-level enough that it can also generate pristine vector output.

That's in fact one of the features of Skia Canvas (vector output in PDF and SVG).

Re:Skia Canvas: Browser-Less Implementation of the HTML Canv... by rafaelmn on Tuesday December 03, 2024 @03:24PM (#42310890)
Ah nice didn't know it had a PDF backend - that sounds perfect for this use case.