Adobe 26001360 Scripting Guide - Page 423
Dim printOpts As New Illustrator.printOptions, Set textRef_1 = docRef.Layers1.TextFrames.Add
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 423 highlights
Adobe Illustrator CS Scripting Guide 423 Dim layerRef_3 As Illustrator.Layer ' create a visible, printable item Set textRef_1 = docRef.Layers(1).TextFrames.Add() textRef_1.Contents = "Visible and Printable" textRef_1.Top = 600 textRef_1.Left = 200 ' create a visible, non-printable item Set layerRef_2 = docRef.Layers.Add() Set textRef_2 = layerRef_2.TextFrames.Add() textRef_2.Contents = "Visible and Non-Printable" textRef_2.Top = 500 textRef_2.Left = 250 layerRef_2.Printable = False ' create a non-visible item Set layerRef_3 = docRef.Layers.Add() Set textRef_3 = layerRef_3.TextFrames.Add() textRef_3.Contents = "Non-Visible" textRef_3.Top = 400 textRef_3.Left = 300 layerRef_3.Visible = False appRef.Redraw ' Print with various jobOptions Dim jobOptionsRef As New Illustrator.PrintJobOptions Dim printOpts As New Illustrator.printOptions printOpts.JobOptions = jobOptionsRef jobOptionsRef.Designation = aiAllLayers jobOptionsRef.ReversePages = True docRef.PrintOut printOpts jobOptionsRef.Designation = aiVisibleLayers jobOptionsRef.ReversePages = False jobOptionsRef.PrintAsBitmap = True docRef.PrintOut printOpts jobOptionsRef.Designation = aiVisiblePrintableLayers jobOptionsRef.File = "C:\temp\printJobTest1.ps" docRef.PrintOut printOpts 12 Aug 03