Code works on MacOs but doesn't on Windows
Hi there,
I have another question.
This code exports the artboards in jpg with the a resolution of 300dpi. Everything works on MacOs 10.6.6 and AI CS5.
I manage to export the jpg on Win 7 x64 and AI CS5 but can't manage to set any of the parameters in 1885434477 ('parm').
Is there anything special to do on Windows?
Thank you very much for your help.
typedef struct
{
long quality;
long kind;
long scans;
long antialias;
AIFixed resolution;
long colorModel;
long alwaysTrue;
long unused[18];
} jpegExportParametersCS5;
jpegExportParametersCS5 jpegExportParameters = {6,1,1,1,65535*300,3,1,1};
error = sAIActionManager->AIActionSetRawDataBytes(valueParameterBlock, 1885434477, (ASUInt32) sizeof(jpegExportParameters), (const char*) &jpegExportParameters);
error = sAIActionManager->PlayActionEvent("adobe_exportDocument", kDialogOff, valueParameterBlock);