0

Is there a way to detect whether there are any rasterized components to an Adobe Illustrator file? Under normal circumstances such a file can be vector based (in which case it will scale well when the size is increased) but if there's a pasted image in the file, this of course won't scale. Any ideas? Any programming language implementation is welcome although in the end I would be emitting C#...

4

1 回答 1

1

使用 COM 参考 Illustrator:

bool HasRaster = false;

Illustrator.Application app = new Illustrator.Application();
Illustrator.Document doc = app.Open("/FileName.AI", null, null);
HasRaster = (doc.RasterItems.Count > 0) ? true : false;
app.Quit();
于 2009-06-11T14:43:23.460 回答