Hi,
We are trying to find path count in .eps files in Adobe Illustrator using the below C# code:
Illustrator.Application application = new Illustrator.Application();
document = application.Open(fileName);
IEnumerable pathList = document.PathItems as IEnumerable;
List<Illustrator.PathItem> pathItems = pathList.Cast<Illustrator.PathItem>().ToList();
long totalCount = pathItems.Sum(c => c.PathPoints.Count);
The above code runs for single files. However for multiple files in parallel, we get the below error:
An Illustrator error occurred: 1346458189 ('PARM')
This error occurs intermittently. Is there any alternative solution for the above code? If not why is the above error coming?
Please help