0 Replies Latest reply on Oct 18, 2012 7:13 AM by Ganesh1982

    Need help in exporting multipage pdf into images

    Ganesh1982

      I come from Flash/Flex background and new to InDesign Server. 

       

      My requirement is to convert a pdf file consisting of "n" pages into "n" jpeg images. Is it achievable using Indesign Server? What is the api I should use for achieving this?

       

      I am able to convert only the first page of pdf into jpeg, and the snippet looks something like below:

       

      inFile = File("d:/myPdfFile.pdf");

      outFile = File("d:/myjpgFile.jpg");

      doc = app.documents.add();

      doc.pages.item(0).place(inFile);

      doc.exportFile(ExportFormat.JPG, outFile);

      doc.close();

       

      I highly appriciate any help regarding this.

       

      thanks,

      Rethna