2 Replies Latest reply on Feb 28, 2010 9:51 PM by Muthuraj Durairaj

    Export to pdf using presets

    Muthuraj Durairaj Level 1

      Hi

       

      I want to create a pdf using export to pdf option with a preset in Indesign.

       

      I have found this following code in Adobe Scripting Guide: VBScript. But it is not working when I tried to run this script by converting this into vbs and added into scripts folder of Indesign.

       

      Set myInDesign = CreateObject("InDesign.Application.CS3")

      myInDesign.ActiveDocument.Export idExportFormat.idPDFType, "c:\myTestDocument.pdf", False, myInDesign.PDFExportPresets.Item("[Press]")

       

       

      Is this anything I have to do with "c:\myTestDocument.pdf" ( I dont understand whether I have to place a pdf in this location before run this script). Please explain.

       

      Thanks a lot.

       

      Regards,

      Muthuraj. D