Scanned Tiff to PDF with Multiple Formats inside.

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
moocows42
Posts: 3
Joined: 2015-10-14T11:01:15-07:00
Authentication code: 1151

Scanned Tiff to PDF with Multiple Formats inside.

Post by moocows42 »

Hello,

I'm trying to take a merged tiff from a scanner and turn it into a PDF.

This works great with mono (fax) formats, however when I have a merged multi page tiff which has some color (Group 4) scanned pages, and some mono (fax) pages inside, I am receiving HUGE pdfs.

A 2.6mb tif becomes nearly 7mb.

I've tried a convert while reducing the quality with jpg compression (down to 65%), but of course this is very lossy.

Is there any way to keep the size roughly the same while converting to PDF?

Thanks for any help in advance.
moocows42
Posts: 3
Joined: 2015-10-14T11:01:15-07:00
Authentication code: 1151

Re: Scanned Tiff to PDF with Multiple Formats inside.

Post by moocows42 »

If helpful, here's one of the many, many offending files: http://www.terravexo.com/x.rar

Also, as per the "Read me first" article, version is: Version: ImageMagick 6.8.9-9 Q16 x86_64 2015-01-05

I'm on Linux (Debian)
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Scanned Tiff to PDF with Multiple Formats inside.

Post by snibgo »

Your supplied tiff contains images compressed with either JPEG or Group4. I don't know what compression options IM has for writing PDF files, but I don't think it allows different images to have different compression methods.
snibgo's IM pages: im.snibgo.com
moocows42
Posts: 3
Joined: 2015-10-14T11:01:15-07:00
Authentication code: 1151

Re: Scanned Tiff to PDF with Multiple Formats inside.

Post by moocows42 »

Thanks snibgo,

I did suspect this was the real issue.

Does anyone know of any kind of workaround?

I know it doesn't compare, but Adobe Pro is generating PDFs at the same size as the tiff. While I understand that's propitiatory software, and they own the PDF format, I was kinda hoping someone else might have had the same issue and found a viable workaround.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Scanned Tiff to PDF with Multiple Formats inside.

Post by snibgo »

A utility such as tiff2pdf may simply put a pdf wrapper around the images.
snibgo's IM pages: im.snibgo.com
Post Reply