4 ms·
Reminds me of https://github.com/gliffy/canvas2svg https://github.com/gliffy/canvas2svg at a different level of abstraction. I believe PDF.js incorporated some
by SigmundA 4y ago
Reminds me of https://github.com/gliffy/canvas2svg https://github.com/gliffy/canvas2svg at a different level of abstraction.
I believe PDF.js incorporated some form canvas2svg to try and get a SVG backend working which would allow high resolution printing to PDF but not sure where that's at. I believe printing through PDF.js is blurry due to memory constraints since with normal canvas pdf pages just end up as bitmaps sent to the printer.
SVG ends up staying vector through Chromiums print pipeline resulting in much less memory usage while having much higher dpi final output. I would imagine this is due to SVG being turned into Skia drawing commands that end up as PDF that then gets printed through PDFium?