PDF to JPG causes black 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?".
Post Reply
virtual

PDF to JPG causes black background

Post by virtual »

I have a PDF that was created with Adobe Illustrator CS4 and has a transparent background. Unfortunately I cannot post the PDF here as I do not have permission, but I have tried, what seems to be, everything under the sun to make it a white background.

I have tried the following commands
-alpha off
-background white
-flatten

So my command looks like:

Code: Select all

exec("convert -alpha off input.pdf -resize 500x700! -background white -flatten -quality 90 output.jpg");
However it still has a black background. Is there any way that these would not work on PDF's made with Adode Illustrator CS4 with transparent backgrounds?

Thanks for your help!
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: PDF to JPG causes black background

Post by snibgo »

This seems to be a common problem. Try searching this forum for "pdf transparent", eg
viewtopic.php?f=1&t=15985&p=57607&hilit ... ent#p57607
snibgo's IM pages: im.snibgo.com
virtual

Re: PDF to JPG causes black background

Post by virtual »

Aha. It was a CMYK color document. Thanks, all fixed.
Post Reply