Batch TIF to PDF

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
TheSkymanDC
Posts: 3
Joined: 2019-10-09T11:28:16-07:00
Authentication code: 1152

Batch TIF to PDF

Post by TheSkymanDC »

Greetings - complete noob here with a few questions.

I have been tasked with creating a batch process that converts all the files in a folder from .tif to .pdf. It is a one-to-one file conversion.

USING WINDOWS

The problems I've run into so far:

1. Unable from the command line to execute magick *.tif *.pdf - I get "...error unable to open image '*.pdf'...."
How can I automatically create an output file with the same name but new format/extension.

2. When converting a tif that contains multiple pages each page is saved to a separate pdf.
Is there a way to have IM create a multi-page pdf instead. I have tried the -adjoin but it doesn't help.

Thanks in advance for you help and patience.

Skyman
Last edited by TheSkymanDC on 2019-10-09T12:30:20-07:00, edited 1 time in total.
TheSkymanDC
Posts: 3
Joined: 2019-10-09T11:28:16-07:00
Authentication code: 1152

Re: Batch TIF to PDF

Post by TheSkymanDC »

OK - it seems that if I specify the exact output file name then only one pdf is created even for a "multi-page" tif.

Progress.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Batch TIF to PDF

Post by snibgo »

I suggest you use "magick mogrify". See http://www.imagemagick.org/script/mogrify.php
snibgo's IM pages: im.snibgo.com
TheSkymanDC
Posts: 3
Joined: 2019-10-09T11:28:16-07:00
Authentication code: 1152

Re: Batch TIF to PDF

Post by TheSkymanDC »

Thanks! Magick Mogrify worked.
Post Reply