I’m told I can put a bit of JS into the file name field of an output preset. True?
If so, I’d like to have the number of sheets in the file name as well as either D if sheets.duplex is true or S if sheets.simplex is true, and add a file number at the end.
What I have below doesn’t work, could someone help me see what I’m missing?
Error I get is:
22:39:16.581 [0014] W3001 : Error while executing plugin: HTTP/1.1 500 LoggedApplicationException: There was an error running the output creation process caused by ApplicationException: error evaluating expression ‘document.count.sheets’ at line 1, column 13 in pattern ‘Statement_${document.count.sheets}{if(${sheet.duplex}){‘D’}else{‘S’}}${file.nr}.pdf’
thanks!
Lou
Statement_${document.count.sheets}{if(${sheet.duplex}){‘D’}else{‘S’}}${file.nr}.pdf’