• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Reg:Problem in Save as PDF

Community Beginner ,
Jan 23, 2017 Jan 23, 2017

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

TOPICS
SDK

Views

526

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Advocate ,
Jan 24, 2017 Jan 24, 2017

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 24, 2017 Jan 24, 2017

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(&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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Jan 25, 2017 Jan 25, 2017

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 27, 2017 Jan 27, 2017

Copy link to clipboard

Copied

LATEST

Dear Friend,

Thank you For Your suggestion.

I am try with the code you mentioned,as like below

AIActionParamValueRef paramValueRef = NULL;

sAIActionManager->AINewActionParamValue(&paramValueRef);

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines