Skip to main content
Known Participant
January 24, 2017
Question

Reg:Problem in Save as PDF

  • January 24, 2017
  • 1 reply
  • 744 views

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

This topic has been closed for replies.

1 reply

Inspiring
January 24, 2017

Could you post more code? When is this code called, in response to a message or some callback?

Known Participant
January 25, 2017

Dear Friend,

  Thank you for your Immediate reply.

  The Code for save as PDF I have written as follows,

AIActionParamValueRef paramValueRef = NULL;

sAIActionManager->AINewActionParamValue(&paramValueRef);

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

A. Patterson
Inspiring
January 25, 2017

Try adding this line:

sAIActionManager->AIActionSetBoolean(paramValueRef, kAIExportDocumentSaveMultipleArtboardsKey, 0);

I had trouble in the past making this action work without that value being set.