4 Replies Latest reply on Jan 27, 2017 12:53 AM by nathans47916809

    Reg:Problem in Save as PDF

    nathans47916809

      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

        • 1. Re: Reg:Problem in Save as PDF
          LeoTaro Level 4

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

          • 2. Re: Reg:Problem in Save as PDF
            nathans47916809 Level 1

            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

            • 3. Re: Reg:Problem in Save as PDF
              A. Patterson Level 4

              Try adding this line:

               

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

               

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

              1 person found this helpful
              • 4. Re: Reg:Problem in Save as PDF
                nathans47916809 Level 1

                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