Convert PDF to Images without transparent background

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?".
LittleKI
Posts: 32
Joined: 2015-01-11T11:55:29-07:00
Authentication code: 6789

Re: Convert PDF to Images without transparent background

Post by LittleKI »

Thanks, this works for the most PDF-Files i've tried. But there is one PDF that i can't extract. The resulting Images consists of transparent background only - that means there is no text or something in the image and also no white background.

This is the Command line i've tried:

Code: Select all

convert -density 300x300 -units pixelsperinch input.pdf -background white -alpha background -alpha off -antialias -compress none +adjoin output.tiff 
i can't upload the pdf file because it includes personal data and i've never seen this effect with an other file.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Convert PDF to Images without transparent background

Post by fmw42 »

Without an example PDF that fails, it will be hard to tell you what the problem might be? Can create or modify your PDF so that it is not proprietary. Or can you send the PDF to the IM developers in a private email for them to test.

I do not think -antialias is doing anything in your command.
Post Reply