PDF to TIFF transparet backgroud

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
mafoj70
Posts: 2
Joined: 2015-08-14T05:07:05-07:00
Authentication code: 1151

PDF to TIFF transparet backgroud

Post by mafoj70 »

Hi all,

I'm converting a PDF file (4 pages) to a TIFF file format but the resulting file has a transparent background and i need to have an opaque white background.

This is the command I've used to:

convert -depth 8 -colorspace sRGB -density 300 -compress LZW -opaque white pdfalt:c:\tmp\fact_det_pdf.pdf c:\tmp\image.tiff

I've been trying a lot of different options but I got always the same result.

Any ideas?

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

Re: PDF to TIFF transparet backgroud

Post by snibgo »

"-opaque" doesn't do what you want. See the documentation http://www.imagemagick.org/script/comma ... php#opaque

Try:

Code: Select all

convert in.pdf -background White -alpha Remove out.png
... with whatever other options you need.
snibgo's IM pages: im.snibgo.com
mafoj70
Posts: 2
Joined: 2015-08-14T05:07:05-07:00
Authentication code: 1151

Re: PDF to TIFF transparet backgroud

Post by mafoj70 »

Thank you very much snibgo, that's it!!!
Post Reply