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.
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 ();
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
...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);
Copy link to clipboard
Copied
hello sir,
Manual method is ok , but through code snippet is possible .
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.
Copy link to clipboard
Copied
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!