Quantcast
Channel: Adobe Community : Popular Discussions - InDesign Server Developers
Viewing all articles
Browse latest Browse all 20709

Need help in exporting multipage pdf into images

$
0
0

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


Viewing all articles
Browse latest Browse all 20709

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>