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 ?
[ Parent
| on HN ]
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).