• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Svg File Transforms are Expanded Dialog box

Explorer ,
Feb 02, 2018 Feb 02, 2018

Copy link to clipboard

Copied

Hello all,

SVG file during code execution i am getting dialog box Svg file Transforms are expanded i would like to close this popup through code it is possible

Please help me.

Capture.PNG

Code :

var exportOptions = new ExportOptionsSVG();

var type = ExportType.SVG;

var fileSpec = new File(sourceDoc.path);

exportOptions.embedRasterImages = true;

exportOptions.embedAllFonts = false;

exportOptions.fontSubsetting = SVGFontSubsetting.None;

exportOptions.preserveEditability = true;

exportOptions.fontType=SVGFontType.SVGFONT;

sourceDoc.exportFile( fileSpec, type, exportOptions );

sourceDoc.close ();

TOPICS
Scripting

Views

3.5K

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

Valorous Hero , Feb 03, 2018 Feb 03, 2018

There may be a preferences key for this.

/svgOptionDlg {

/O_Width_Unit 2

/O_Height_Unit 2

/O_Resolution_Unit 0

/O_Anti_Alias_Artwork 1

/O_ExportHiddenObjects 0

/O_Export_LayerAsTitle 0

/O_Also_Export_Compressed 0

/O_Constrain_Proportions 1

/O_Clip_To_Artboard 0

/O_EmbedFontFormats 2

/O_EmbedRasterLoc 2

/O_RasterResolution 72

/O_GradientTolerance 0.25

/O_TextOnPath 1

/O_RoundTrip 0

/O_IncludeAdobeNameSpace 0

/O_IncludeTemplate 0

/O_IncludePGF 0

/O_IncludeXAP 0

/O_IncludeSlices 0

/O_DialogExpanded 0

/O_SVGDTD 0

/O_SVFont

...

Votes

Translate

Translate
Adobe
Valorous Hero ,
Feb 03, 2018 Feb 03, 2018

Copy link to clipboard

Copied

There may be a preferences key for this.

/svgOptionDlg {

/O_Width_Unit 2

/O_Height_Unit 2

/O_Resolution_Unit 0

/O_Anti_Alias_Artwork 1

/O_ExportHiddenObjects 0

/O_Export_LayerAsTitle 0

/O_Also_Export_Compressed 0

/O_Constrain_Proportions 1

/O_Clip_To_Artboard 0

/O_EmbedFontFormats 2

/O_EmbedRasterLoc 2

/O_RasterResolution 72

/O_GradientTolerance 0.25

/O_TextOnPath 1

/O_RoundTrip 0

/O_IncludeAdobeNameSpace 0

/O_IncludeTemplate 0

/O_IncludePGF 0

/O_IncludeXAP 0

/O_IncludeSlices 0

/O_DialogExpanded 0

/O_SVGDTD 0

/O_SVFontType 1

/O_DisbleAutoKerning 1

/O_UseSVGTextOnPath 1

/O_IncludeUnusedStyles 0

/O_ResponsiveSVG 1

}

Go to your "Adobe Illustrator Prefs" file in your User > AppData > Roaming folder on Windows, or User > Library (have to hold option key then, the Library item appears in the "Go" menu of Finder) > Preferences > Adobe Illustrator 22 Settings

If your /O_DialogExpanded 0 line shows a 1 instead of 0, (assuming you never checked the "do not show again" checkbox), then this could be the preference.

If so, then you can try to see if the preference key works:

app.preferences.setIntegerPreference("/plugin/O_DialogExpanded", 0);

Votes

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
Explorer ,
Feb 04, 2018 Feb 04, 2018

Copy link to clipboard

Copied

hello sir,

Manual method is ok , but through code snippet is possible .

Votes

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
Explorer ,
Mar 20, 2018 Mar 20, 2018

Copy link to clipboard

Copied

Hello sir ,

I have corrected as per your instructions , today i am facing about 200 svg files this same issue (Transforms are Expanded)  can you able to provide me another solution.

Votes

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
Valorous Hero ,
Mar 20, 2018 Mar 20, 2018

Copy link to clipboard

Copied

LATEST

I don't have anything else - as far as I know, even when you set this dialog manually one time, it should apply to all future instances. If this isn't working on this basic level, not sure what could be done!

Votes

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