Skip to main content
Participant
February 23, 2021
Answered

export to SVG with viewbox set to document size?

  • February 23, 2021
  • 1 reply
  • 2958 views

Hi there.
Is there a way to export an AI-document to SVG (with internal CSS) in such a way, that the SVG viewbox matches the document size in AI? 
Thanks

This topic has been closed for replies.
Correct answer arkadijl34624224

Nope, that didn't do it. I used a combination of "export with canvas" and javascript to adjust the viewport settings in the SVG. If there really is no way of "set SVG viewport size to canvas size", I wish Adobe would add that.

1 reply

Participant
February 23, 2021

Edit: found it I think. I got the german version of AI, but I'd assume that the english version calls this option "export with canvas" or something like that.

arkadijl34624224AuthorCorrect answer
Participant
February 23, 2021

Nope, that didn't do it. I used a combination of "export with canvas" and javascript to adjust the viewport settings in the SVG. If there really is no way of "set SVG viewport size to canvas size", I wish Adobe would add that.