Monday, December 29, 2003

Adobe Illustrator 10 SDK - Jpeg export of the page

How to actually do a Jpeg export.

After having found out which is the correct format name you could use this piece of code:


AIErr   error   = kNoErr;
AIActionParamValueRef valueParameterBlock = NULL;
ActionDialogStatus dialogStatus  = kDialogOff;
TCHAR   pszPath[255];
error = sAIActionManager->AINewActionParamValue(&valueParameterBlock);
ASSERT(!error );

error = sAIActionManager->AIActionSetString(valueParameterBlock, kAIExportDocumentNameKey, W2A(pszPath));

const char* szJPEGFileFormat = "JPEG file format";
error = sAIActionManager->AIActionSetString(valueParameterBlock, kAIExportDocumentFormatKey, szJPEGFileFormat);
error = sAIActionManager->AIActionSetString(valueParameterBlock, kAIExportDocumentExtensionKey, "jpg");

error = sAIActionManager->PlayActionEvent( kAIExportDocumentAction, dialogStatus, valueParameterBlock );



1 comment:

uiyui said...

However mean your gold in wow life is,buy wow gold meet it and live it ;wow gold cheap do not shun it and call it hard names.It is not so bad as you are.It looks poorest when you are richest.The fault-finder will find faults in gold kaufen love your life,poor as it is.maple meso You may perhaps have some pleasant,thrilling,maplestory power leveling glorious hourss,even in a poor-house.The setting sun is reflected from the windows of the alms-house as brightly as from the rich man's abode;the snow melts before its door as early in the spring.sell wow gold I do not see but a quiet mind may live as contentedly there,cheap mesos and have as cheering thoughts,as in a palace.The town's poor seem to me often to live the most independent lives of any.May be they are simply great enough to billig wow gold receive without misgiving.Most think that they are above being supported by the town;powerlevel but it often happens that buy maplestory mesos they are not above supporting themselves by dishonest means.which should be more disreputable.Cultivate poverty like a garden herb,like sage.Do not trouble wow powerleveln yourself much to get new things,maple mesos whether clothes or friends,Turn the old,archlord power leveling return to them.Things do not change;we change.Sell your clothes and keep your thoughts.