Page 1 of 1

PDF to TIFF transparet backgroud

Posted: 2015-08-14T05:33:54-07:00
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.

Re: PDF to TIFF transparet backgroud

Posted: 2015-08-14T06:31:39-07:00
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.

Re: PDF to TIFF transparet backgroud

Posted: 2015-08-14T08:42:24-07:00
by mafoj70
Thank you very much snibgo, that's it!!!