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: 2
Joined: 2019-10-09T11:28:16-07:00
Authentication code: 1152

Batch TIF to PDF

Post by TheSkymanDC » 2019-10-09T11:51:12-07:00

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: 2
Joined: 2019-10-09T11:28:16-07:00
Authentication code: 1152

Re: Batch TIF to PDF

Post by TheSkymanDC » 2019-10-09T12:28:56-07:00

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: 12145
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Batch TIF to PDF

Post by snibgo » 2019-10-09T15:10:34-07:00

I suggest you use "magick mogrify". See http://www.imagemagick.org/script/mogrify.php
snibgo's IM pages: im.snibgo.com

Post Reply