Conversion tif, dwg dgn to pdf

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderators: XnTriq, helmut, xnview

cday
XnThusiast
Posts: 3985
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Conversion tif, dwg dgn to pdf

Post by cday »

XnTriq wrote:
AutoCadConverter wrote:Where do I place this parameter so that all my output goes to another folder?

Code: Select all

nconvert -c 1 -out pdf C:\Source\*.tif -o C:\Destination\%.pdf
Is that correct, cday?
I'm not the NConvert expert, and as I've written elsewhere never even expected to use the command line myself, I only reply to posts because generally no-one else does... :wink:

But as far as I know input files are normally placed last in the code, so if the above code doesn't run correctly it would at least be a start to try this minor modification:

Code: Select all

nconvert -c 1 -out pdf -o C:\Destination\%.pdf C:\Source\*.tif
If running from a Windows batch file the % would need to be doubled to %% .

Otherwise please report back, including any clarification of the exact requirement...
User avatar
XnTriq
Moderator & Librarian
Posts: 6339
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Conversion tif, dwg dgn to pdf

Post by XnTriq »

cday wrote:But as far as I know input files are normally placed last in the code, so if the above code doesn't run correctly it would at least be a start to try this minor modification:

Code: Select all

nconvert -c 1 -out pdf -o C:\Destination\%.pdf C:\Source\*.tif
Confirmed!
  • OK: nconvert.exe -c 1 -out pdf -o X:\Destination\%.pdf X:\Source\*.dwg
    KO: nconvert.exe -c 1 -out pdf -o X:\Source\*.dwg X:\Destination\%.pdf
Thanks, cday :-)
Post Reply