-multi in code prevents creation of output folder
Posted: Wed Nov 11, 2015 7:20 pm
When -multi is included in code an output folder that doesn't already exist isn't created when the script is run:
This code runs and creates the 'output' folder if it doesn't exist:
This code fails with the message "Can't create file" if the 'output' folder doesn't already exist:
Note that the above tests have been run as described in this post but that kewbsl has tested using full paths.
This code runs and creates the 'output' folder if it doesn't exist:
Code: Select all
nconvert -out pdf -o output\test.pdf test_1.jpg test_2.jpg
Code: Select all
nconvert -multi -out pdf -o output\test.pdf test_1.jpg test_2.jpg