Copy link to clipboard
Copied
Dear Friends,
I am Using Adobe illustrator CC(17.1).
I have faced a problem while using adobe_saveACopyAs for saving as PDF.
I am trying to Apply Fill Color for a path and Save it as PDF.
The Fill is not shown in the ai file and saved PDF file After the execution of the following line
sAIActionManager->PlayActionEvent( "adobe_saveACopyAs", kDialogOff, valueParameterBlock);
Please note that:
The Folllowing line is not used(commented) then Fill is Shown in ai file.
sAIActionManager->PlayActionEvent( "adobe_saveACopyAs", kDialogOff, valueParameterBlock);
Please give your suggestion to save As PDF with Fill.
Thank you friends,
Nathan
Copy link to clipboard
Copied
Could you post more code? When is this code called, in response to a message or some callback?
Copy link to clipboard
Copied
Dear Friend,
Thank you for your Immediate reply.
The Code for save as PDF I have written as follows,
AIActionParamValueRef paramValueRef = NULL;
sAIActionManager->AINewActionParamValue(¶mValueRef);
sAIActionManager->AIActionSetString( paramValueRef, 'name', "D:\\MySample.pdf" );
sAIActionManager->AIActionSetString( paramValueRef, 'frmt', kAIPDFFileFormat);
sAIActionManager->AIActionSetString( paramValueRef, 'extn', kAIPDFFileFormatExtension);
sAIActionManager->AIActionSetInteger( paramValueRef, 'gprm', 1);
sAIActionManager->PlayActionEvent( "adobe_saveACopyAs", kDialogOff, paramValueRef);
Regards,
Nathan
Copy link to clipboard
Copied
Try adding this line:
sAIActionManager->AIActionSetBoolean(paramValueRef, kAIExportDocumentSaveMultipleArtboardsKey, 0);
I had trouble in the past making this action work without that value being set.
Copy link to clipboard
Copied
Dear Friend,
Thank you For Your suggestion.
I am try with the code you mentioned,as like below
AIActionParamValueRef paramValueRef = NULL;
sAIActionManager->AINewActionParamValue(¶mValueRef);
sAIActionManager->AIActionSetString( paramValueRef, 'name', "D:\\MySample.pdf" );
sAIActionManager->AIActionSetString( paramValueRef, 'frmt', kAIPDFFileFormat);
sAIActionManager->AIActionSetString( paramValueRef, 'extn', kAIPDFFileFormatExtension);
sAIActionManager->AIActionSetBoolean(paramValueRef, 'smab', 0);
sAIActionManager->AIActionSetInteger( paramValueRef, 'gprm', 1);
sAIActionManager->PlayActionEvent( "adobe_saveACopyAs", kDialogOff, paramValueRef);
But the Problem is not solved.
Regards,
Nathan