Currently, I can only use jpeg
& png
exports like:
stageRef.current?.getStage().toDataURL({ mimeType: 'image/jpeg', quality: 1 })
stageRef.current?.getStage().toDataURL({ mimeType: 'image/png', quality: 1 })
I want to export Canvas to svg
as well as pdf
like Figma does it.
I found out about Data URIs which led to MIME_types. In there, they have written application/pdf
& image/svg+xml
should work but when I do that I still get a .png
image.
Is there any way to achieve .svg
& .pdf
from Canvas in Konva?