3 ms·
Is Canvas really suitable for PDFs ? Afaik it's immediate mode bitmap graphics - so PDFs would just be embedded bitmaps ?
by rafaelmn 2y ago
Is Canvas really suitable for PDFs ? Afaik it's immediate mode bitmap graphics - so PDFs would just be embedded bitmaps ?
- adrianh 2y agoWe 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).
- rafaelmn 2y agoAh nice didn't know it had a PDF backend - that sounds perfect for this use case.