Quantcast
Channel: Adobe Community: Message List - InDesign Scripting
Viewing all articles
Browse latest Browse all 37788

Re: can't find exported png

$
0
0

I had my for loop wrong as well in previous post.

 

Now i have:

 

 

#includepath "~/Documents/;%USERPROFILE%Documents";
#include "basiljs/bundle/basil.js";  
function setup() {       b.units(b.MM);  }  
function draw() {      var pages = new Array();  for(var i = 0; i < b.pageCount(); i++) {        var page = b.page(i);       //          //page.exportFile(ExportFormat.PNG_FORMAT,File("/Users/doekewartena/Documents/temp/test"+j+".png"),false);        page.exportFile(ExportFormat.PNG_FORMAT, new File((new File($.fileName)).parent.fsName + "/output" + i + ".png"), false);                                }      } 
 b.go();

 

But how can i export? i get ReferenceError: page.exportFile is not a function.


Viewing all articles
Browse latest Browse all 37788

Trending Articles



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