Adobe 26001360 Scripting Guide - Page 324
ExportOptionsJPEG, Example 14.1
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 324 highlights
324 Visual Basic Reference Example 14.1 This example demonstrates how to export the current document as a GIF. Dim appRef As New Illustrator.Application Dim gifExportOptions As New Illustrator.ExportOptionsGIF Dim docRef As Illustrator.Document If appRef.Documents.Count > 0 Then gifExportOptions.AntiAliasing = False gifExportOptions.ColorCount = 64 gifExportOptions.ColorDither = aiDiffusion Set docRef = appRef.ActiveDocument docRef.Export "C:\temp\AiExport.gif", aiGIF, gifExportOptions End If ExportOptionsJPEG Options which may be supplied when exporting a document as a JPEG file. See the Export method for additional details. Table 5.30 ExportOptionsJPEG - Properties Property AntiAliasing Application ArtBoardClipping BlurAmount HorizontalScale Matte MatteColor Optimization R/O Value type What it is Boolean If true, the exported image should be anti-aliased; default value: true R/O Application object The Illustrator Application object Boolean If true, the exported image should be clipped to the art board Double The amount of blur to apply to the exported image. This value ranges from 0.0 to 2.0. The default value is 0.0 Double The horizontal scaling factor to apply to the exported image, where 100.0 is 100%. Default value: 100.0 Boolean RGBColor object Boolean If true, the art board should be matted with a color; default value: true The color to use when matting the art board; default value: white If true, the exported image should be optimized for web viewing; default value: true 12 Aug 03