Where to get the UI components as shown in Acrobat, Photoshop, etc.
2 answers
Are you building a .NET platform? Then you have access to many of the COM libraries that Adobe programs use internally.
For example, you can directly instantiate and specify an Adobe Illustrator instance:
- In Visual Studio, right click on your project and select Add Reference.
- Select Adobe Illustrator CS4 / CS3 Type Library, click OK. (located in the folder "C: \ program files \ adobe \ adobe illustrator cs3 / cs4 \ plug-ins \ extensions \ scriptingsupport.aip")
Now in your program:
FROM#
// open AI, init
Illustrator.Application illuApp = new Illustrator.Application();
// open doc
Illustrator.Document illuDoc = illuApp.Open("C:\myai.ai", Illustrator.AiDocumentColorSpace.aiDocumentRGBColor, null);
// close doc
illuDoc.Close();
illuDoc = null;
// close AI
illuApp.Quit();
illuApp = null;
VB
'open AI, init
Dim illApp As Illustrator.Application = New Illustrator.Application()
' open doc
Dim illDoc As Illustrator.Document = illApp.Open("C:\myai.ai", Illustrator.AiDocumentColorSpace.aiDocumentRGBColor, Nothing)
' close doc
illDoc.Close()
illDoc = Nothing
'close AI
illApp.Quit()
illApp = Nothing
Try browsing in the Add Link window to find more libraries. You can even directly link to Adobe backend libraries!
0
source to share