IllustratorSaveOptions in C# .NET is not working anymore as expected
For more than a decade the following Illustrator script has been applied via C# .NET in combination with all existing Illustrator versions (sourcecode):
typelib.IllustratorSaveOptions saveOptions = new typelib.IllustratorSaveOptions();
saveOptions.Compatibility = typelib.AiCompatibility.aiIllustrator8;
saveOptions.FlattenOutput = typelib.AiOutputFlattening.aiPreserveAppearance;
DestDoc.SaveAs(sPath, saveOptions);
All over the internet we see a lot of people using the same code above (ideas) also in other programming languages.
Following test has been done with CS, CS2, CS3, CS5, CS6, etc. on the latest Windows 10 operating system and with VS2012:
draw 2 intersecting rectangles: above yellow, the other red. A transparency Difference has been set on the yellow rectangle.
AI version8.0 output results:
applying the source code above, in versions up to and CS5, yields three rectangles (transparency is being flattened), but later versions (CS6 up to and the latest most recent creative cloud Illustrator version) do output only two rectangles (do not flatten, but remove the transparency as if option aiPreservePaths instead of aiPreserveAppearance is activated).
Everything is working well in case the save to AI format 8.0 is done manually inside the Illustrator application itself.
What has been changed that has broken this functionality?
Do we have to add something to the code mentioned above, or, has a bug been introduced in Illustrator from version CS5 to CS6? We have no idea why this is not working anymore. Please look into it because this piece of functionality is quite important for our customers.
Our goal is to save a worksheet via a C# .NET application in AI version format 8.0 with option Preserve Appearance and Overprint. Initially it worked for a lot of Illustrator versions, but now it does not work anymore.
Regards,
Jac.
