These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

saving single page as tiff image without extracting with javascript

dogrumustafa
Registered: Jan 3 2011
Posts: 7

is there a way of saving single page with JavaScript as tiff image without extracting

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
No, the Doc.saveAs() function always saves the entire PDF. But extracting is no big deal.

var oExtPage = this.extractPages(this.pageNum);
oExtPage.saveAs(cJPegPath,"com.adobe.acrobat.jpeg");
oExtPage.closeDoc(true);

This code will do it when run from a privileged context

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script