1 Reply Latest reply on Jan 24, 2018 2:01 AM by Xpertios

    how to set pdf compatibility to ai file or doc?

    omkar jadhav Level 1

      how to set pdf compatibility to ai file or doc? I want to convert ai file to pdf file and I have used writeDocument() api. it converts ai file into pdf file but pdf file shows "create pdf compatible file option turned on".

      here is my code -

       

      ai::UnicodeString myString(filepath);

      ai::FilePath aiFile1(myString);

                    

      ASErr result = kNoErr;

      try

      {

           SDK_ASSERT(sAIDocument);

           result = sAIDocument->WriteDocument(aiFile1, fileFormatName, false);    

           aisdk::check_ai_error(result);

      }   

      catch (ai::Error& ex)

      {

            result = ex;

      }

       

      Please give answer if anyone knows.