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

Export to PDF

$
0
0

Hello,

 

I would like to export inx file to pdf file using javascript (.jsx). however, when i ran this script using testclient command it gives expected semicolon error.

 

here is the script...

 


var my_input = app.scriptArgs.getValue("in");
var my_output = app.scriptArgs.getValue("out");

 

var myDocument = app.open(File(my_input));

 

if(app.documents.length != 0){
    app.documents.item(0).exportFile(ExportFormat.pdfType, File(my_input)), app.pdfExportPresets.item("[High Quality Print]"));
}

 

Would please suggest what wrong in this script?

 

Thanks,

Shailesh


Viewing all articles
Browse latest Browse all 20709

Trending Articles



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