Trying to get the syntax correct or understand what is wrong with my syntax so that I can fix it.
Trying to convert all tiff files in a directory to pdf files with 1 to 1 ratio. The TIff is multipage and pdf output should be multipage. The source and the destination are the same and permission for the folder is set to everyone full read/write access.
azon2111 wrote: ↑Sat Apr 21, 2018 3:07 pm
And just for reference GhostScript is installed but do I need to place files into the XnView folder?
I used the windows installer for version 9.23 gs dot com site and not .edu as rerefenced in the format txt file.
GhostScript is only required to read PDF files, not to create them, so that is not a factor. It wouldn't normally be installed in the XnView/NConvert folder, rather in Program Files or Program Files (x86), as appropriate. It must be installed using the installer, otherwise NConvert can't find it. The NConvert and GhostScript x32 and x64 must also match.
You are using the right technique: lots of trial and error!
I'm firing up my Windows computer to see if I have an example of code that works...
This tested code filed under M-TIFF_to_M-PDF was originally run as a batch file and using relative addressing, but you should be able to adapt it to your case:
So it looks as if -xall in your code is your immediate problem...
Edit:
To convert multiple TIFFs using *.tif I think you may need to use a FOR loop around the basic code, if you could get your code working for a single TIFF first, and then test whether it will also process multiple input TIFFs as it is...
azon2111 wrote: ↑Sat Apr 21, 2018 2:44 pm
Trying to convert all tiff files in a directory to pdf files with 1 to 1 ratio. The TIff is multipage and pdf output should be multipage. The source and the destination are the same and permission for the folder is set to everyone full read/write access.
Did you find a satisfactory solution?
I had a look at a For loop solution at the weekend, and after a false start I can now offer you the following outline code which seems to produce the desired result in my quick tests: