I am using sejda-console.bat
and I am running into difficulties with parameters when there is a space involved.
I am trying to use the simplesplit
feature and I am calling the console as follows:
call sejda-console.bat simplesplit -f %1 -o %~dp1 -s all
If the path to my file is:
Z:\Test\test.pdf
The script works perfectly. However if the path to my file is:
Z:\Test Folder\test.pdf
It fails with the following error:
call sejda-console.bat simplesplit -f "Z:\Test Folder\test.pdf" -o Z:\Test Folder\ -s all
18:16:29.746 Configuring Sejda 1.0.0.M2
18:16:29.777 Loading Sejda configuration form default sejda.xml
18:16:30.027 Starting execution with arguments: 'simplesplit -f Z:\Test Folder\test.pdf -o Z:\Test Folder\ -s all'
18:16:30.027 Java version: '1.7.0_25'
18:16:30.199 Option only takes one value: --output -o value : output directory (required)
I wonder is there anyone who is familiar with the sejda-console or just passing parameters with spaces that could point me in the right direction. I have searched widely and tried all possible combinations of parameters etc.
Thanks