Convert PDF to .TIF

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
vargheseg
Posts: 11
Joined: 2016-02-08T14:37:40-07:00
Authentication code: 1151

Convert PDF to .TIF

Post by vargheseg »

I used the following command to convert a pdf file to .tif format and was successful.

convert 123.pdf file 123.tif file.

1. All the objects including some text and a wave form on the PDF came very small - the reduction in size was proportionate for all object. How do I make the size of the object in pDF file the same as in pdf file

2. The resolution of all all objects was very much on the lower side. What option do I use or play around with to get this better - as close I see on the .pdf document
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Convert PDF to .TIF

Post by snibgo »

I've moved your question to a new topic.

A PDF file has dimension in inches (or centimetres), but ImageMagick is more concerned with pixels. By default, IM tells Ghostscript to rasterize the PDF at 72 pixels per inch, but you can change this with "-density XX" before the input PDF, where XX is any number you want.
snibgo's IM pages: im.snibgo.com
vargheseg
Posts: 11
Joined: 2016-02-08T14:37:40-07:00
Authentication code: 1151

Re: Convert PDF to .TIF

Post by vargheseg »

Thanks for your useful feedback, i got good result, but when I took the density to 200, the file size almost doubled. Is there any workaround on that.

Also the the dimensions gets reduced so significantly, by a factor of 3, on the whole image. Do you have any feedback

Appreciate your help
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Convert PDF to .TIF

Post by fmw42 »

try adding -compress lzw before the output

Code: Select all

convert -density 200 123.pdf -compress lzw 123.tif
or

Code: Select all

convert -density 288 123.pdf -resize 25% -compress lzw 123.tif
vargheseg
Posts: 11
Joined: 2016-02-08T14:37:40-07:00
Authentication code: 1151

Re: Convert PDF to .TIF

Post by vargheseg »

thanks for all you ehlp, worked out well
vargheseg
Posts: 11
Joined: 2016-02-08T14:37:40-07:00
Authentication code: 1151

Re: Convert PDF to .TIF

Post by vargheseg »

Is the usage of lzw compression - copyrighted . Can we use Flate compression algorithm
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Convert PDF to .TIF

Post by snibgo »

vargheseg wrote:Is the usage of lzw compression - copyrighted .
Perhaps you mean: is LZW patented? According to https://en.wikipedia.org/wiki/Lempel%E2 ... 80%93Welch , all LZW patents have expired.
vargheseg wrote:Can we use Flate compression algorithm
I've never heard "Flate". Perhaps it is another name for "Zip". Use "convert -list compress" for a list of available compression methods.
snibgo's IM pages: im.snibgo.com
vargheseg
Posts: 11
Joined: 2016-02-08T14:37:40-07:00
Authentication code: 1151

Re: Convert PDF to .TIF

Post by vargheseg »

Thanks for the feedback
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Convert PDF to .TIF

Post by fmw42 »

Imagematick does not have a flate compression. See http://www.cvisiontech.com/library/pdf/ ... ssion.html. It is similar to LZW, but for PDF files as far as I can tell and not for applying to TIFF files.
Post Reply