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.
Cheers,
J^2
Thank you all for the replies. I have been able to get something closer to what I need. However, one last thing I am seeing is that the color space is getting converted to RGB when I export using the saved Macro vs a manual export. Does anyone have a full list of the settings available for the ExportFilter object?
Getting deeper into the weeds (and this abysmal excuse for API documentation! Where are the examples? Seriously!) and it's looking like I need to define ProofColorSettings, which needs a ColorContext, and the rabbit whole goes ever deeper... Am I missing something fundamental here? Is there not a way to export via a script that gives me the exact same output as doing an export manually?
It is opening as CYMK for me when the Profile is Embedded (The Larger File Size) if it is not, then it opens as RGB.
Interesting... Perhaps I missed something. Here's the code I am using currently:
Dim expopt As StructExportOptions Set expopt = CreateStructExportOptions expopt.UseColorProfile = Trueexpopt.ProofColorSettings = CreateProofColorSettings("U.S. Web Coated (SWOP) v2")Dim expflt As ExportFilter Set expflt = ActiveDocument.ExportEx(fileName, cdrAI, cdrActivePage, expopt) Call util.Log("[Debug] Performing ActiveDocument.ExportEx to " & fileName)With expflt .Version = 10 ' FilterAILib.aiVersionCS6 <-- This file can not be imported into Maya. For color reference only .TextAsCurves = False.ConvertSpotColors = False .SimulateOutlines = False .SimulateFills = False .IncludePlacedImages = True 'fullColor .IncludePreview = True .EmbedColorProfile = True .Finish End With
The above code worked fine for me. It opened just liked the screenshot I had shown above.
Odd... That same code creates a file that opens as RGB for me...
Perhaps you could could send that source CDR file you are testing with so I can compare it to my test file?
Feel free to email me the file to: shelby@cdrpro.com I will have to look at it tomorrow I need to sign off for tonight.