export to SVG with viewbox set to document size?

Community Beginner ,
Feb 23, 2021 Feb 23, 2021

Copy link to clipboard

Copied

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

TOPICS
How to, Import and export

Views

58

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct Answer

Community Beginner , Feb 23, 2021 Feb 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.

Likes

Translate

Translate
Community Beginner ,
Feb 23, 2021 Feb 23, 2021

Copy link to clipboard

Copied

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 23, 2021 Feb 23, 2021

Copy link to clipboard

Copied

LATEST

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines