Search code examples
javascriptsvgadobeadobe-illustratorextendscript

ExportOptionsSVG class in Illustrator ExtendScript has no "responsive" property


"responsive" must be a new option for SVG export in Adobe Illustrator. I am using v18.0.0. There is an option on the UI when exporting SVG, but when exporting in ExtendScript there is no way to programatically disable responsiveness.

How can I get around this?


Solution

  • I will go ahead and close this question.

    The short answer - there is no way to programatically disable responsiveness in Illustrator ExtendScript unfortunately. My main reason for needing it disabled is that responsiveness prevents the width and height attributes from being included in the tag, and I needed those for my script.

    However, as a hack I used the viewBox dimensions which are still retained in the element as widths and heights. After talking to someone on the design team, they said this is a fine thing to do as the viewBox is representative of what the widths and heights would be.