Adobe 26001360 Scripting Guide - Page 376
Paper, A container for information about the paper to be used for printing.
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 376 highlights
376 Visual Basic Reference Paper A container for information about the paper to be used for printing. Table 5.81 Paper - Properties Property R/O Value type Application R/O AiApplication object Name PaperInfo String PaperInfo object What it is Application to which the collection belongs The paper name The paper information Example 43.1 ' Paper ' PaperInfo ' ' Create a new document and a simple art item ' Note: Printable artwork is needed when using ' a Printer object ' ' Get a reference to the first printer and display ' data on the available paper types ' Dim appRef As New Illustrator.Application Dim docRef As Illustrator.Document Dim itemRef As Illustrator.pathItem Dim textRef As Illustrator.TextFrame Dim printerRef Dim sText As String ' add a new document with some simple artwork Set docRef = appRef.Documents.Add() Set itemRef = docRef.PathItems.Rectangle(600, 300, 200, 100) Set textRef = docRef.TextFrames.Add() textRef.Top = 600 textRef.Left = 50 ' get paper objects for first printer Set printerRef = appRef.PrinterList(1) sText = printerRef.Name sText = sText & " paper list:" & vbCrLf ' display data about available paper types Dim paperRef For Each paperRef In printerRef.PrinterInfo.PaperSizes sText = sText & paperRef.Name & vbCrLf 12 Aug 03