Adobe 26001360 Scripting Guide - Page 331
Gradient, Notes, Example 19.1
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 331 highlights
Adobe Illustrator CS Scripting Guide 331 Table 5.34 ExportOptionsSVG - Properties (Continued) Property R/O Value type What it is PreserveEditability Slices Boolean Boolean If true, preserve Illustrator editing capability when exporting the document; default: false If true, preserve slice data in exported document; default: false Notes It is not necessary to specify values for all properties. Default values will be provided for any properties not specified. Example 19.1 This example exports the current document as a SVG file. Dim appRef As New Illustrator.Application Dim svgExportOptions As New Illustrator.ExportOptionsSVG Dim docRef As Illustrator.Document If appRef.Documents.Count > 0 Then svgExportOptions.EmbedRasterImages = True svgExportOptions.EmbedAllFonts = True Set docRef = appRef.ActiveDocument docRef.Export "C:\temp\AiExport.svg", aiSVG, svgExportOptions End If Gradient A gradient definition contained in a document. Table 5.35 Gradient - Properties Property Application GradientStops Name Parent R/O Value type What it is R/O Application object The Illustrator Application object R/O GradientStops The gradient stops contained in this collection object gradient String The gradient's name R/O Document object The document that contains this gradient 12 Aug 03