I am trying to automate the export of an open file to Illustrator CS 6 format. I have found that the output is very different from when the same process is run manually. I have to assume there's some kind of issue with the macro, but what could it be?
2K words worth of examples:
File exported while macro was being recorded:
File exported by running the recorded macro:
The macro is obviously killing all the transparencies but since it was recording my actions, shouldn't the macro produce the same results as the actions it was supposed to be recording?
Any suggestions on how I could make this work would be greatly appreciated.
it would be nice to look at your macro code. Because the export procedure usually contains a number of parameters that may be missing or default.
Here's the macro as recorded:
Sub ExportTestMacro() ' Recorded 10/13/2021 Dim expopt As StructExportOptions Set expopt = CreateStructExportOptions expopt.UseColorProfile = True Dim expflt As ExportFilter Set expflt = ActiveDocument.ExportEx("C:\Users\jjfra\Documents\AITests\ExportTestMacro.ai", cdrAI, cdrAllPages, expopt) With expflt .Version = 10 ' FilterAILib.aiVersionCS6 .TextAsCurves = False .PreserveTransparency = True .ConvertSpotColors = False .SimulateOutlines = False .SimulateFills = True .IncludePlacedImages = True .IncludePreview = True .EmbedColorProfile = True .Finish End WithEnd Sub