make the pdf presentation with unsaved open document
Hi all,
how to make the pdf presentation with unsaved open document ? below code only work for saved document with file path
//
var inputFiles =[];
for(var a =0;a< app.documents.length;a++){
inputFiles.push(app.documents[a].fullName);
}
var outputFile = File("~/Desktop/JavaScriptPresentation.pdf");
var options = new PresentationOptions;
options.presentation = true;
options.view = true;
options.autoAdvance = true;
options.interval = 5;
options.loop = true;
options.transition = TransitionType.RANDOM;
app.makePDFPresentation(inputFiles, outputFile, options);
alert("Presentation file saved to: \n" + outputFile.fsName);//
