Problem in saving document to pdf on MAC


how can save indesign document pdf using file.savedialog.
i using jsx:::

 

function jsxfunction()

{

          var appname;

          if(app.name == undefined)

          {

                    // javascript apps

                    appname = app.appname;

          }

          else

          {

                    // extendscript enabled apps

                    appname = app.name;

          }

 

          //your jsx code here

     var xml = '<object>';

          xml += '<property id="success"><true/></property>';

          xml += '</object>';

          return xml;

}

function savefordirectory()

{

    var folder= file.savedialog ('select directory', 'pdf') ;

    if(folder)

    return folder;

}

 

 

but how implement code in flex code?
can me?

thanks in advance.

also code running correct. have checked it. but, how can save indesign document it.

i using function export document pdf.

 

indesign.app.activedocument.exportfile();



More discussions in Creative Suite SDK


adobe

Comments