Adobe 26001360 Scripting Guide - Page 325
Notes, Example 15.1, Table 5.30, ExportOptionsJPEG - Properties Continued
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 325 highlights
Adobe Illustrator CS Scripting Guide 325 Table 5.30 ExportOptionsJPEG - Properties (Continued) Property R/O Value type What it is QualitySetting SaveAsHTML VerticalScale Long Boolean Double The quality of the exported image; value ranges from 0 to 100; default value is 30 If true, the exported image should be saved with an accompanying HTML file; default value is false The vertical scaling factor to apply to the exported image, where 100.0 is 100%. The default value is 100.0 Notes It is not necessary to specify values for all properties. Default values will be provided for any properties not specified. Example 15.1 This example demonstrates how to export the current document as a JPEG with specific options. Dim appRef As New Illustrator.Application Dim jpegExportOptions As New Illustrator.ExportOptionsJPEG Dim docRef As Illustrator.Document If appRef.Documents.Count > 0 Then jpegExportOptions.AntiAliasing = False jpegExportOptions.QualitySetting = 70 Set docRef = appRef.ActiveDocument docRef.Export "C:\temp\AiExport.jpg", aiJPEG, jpegExportOptions End If 12 Aug 03