Best way to convert .pdf to [.eps & .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
myspacee
Posts: 153
Joined: 2007-06-14T02:09:35-07:00

Best way to convert .pdf to [.eps & .tif]

Post by myspacee »

Hello,
i've a job task . We have some pdf files, (eg. : http://static.repubblica.it/laprovincia ... /input.pdf)
that sometimes fail in normal process. We find a trick that bypass problem, but only few people can
do this in short time.

I think to use IM to apply right conversion and obtain 1:1 eps file in short time possible.
Hotfolder wait for a pdf file, take it, convert, and return to our system.

Now i'm searching right syntax to accomplish this task, obtain an EPS file, and a TIF with same height and base,
then remove white border to obtain file like this:
Image

thank you in advance for any info,
m.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Best way to convert .pdf to [.eps & .tif]

Post by fmw42 »

IM will rasterize your pdf before it can convert it back to eps. see http://www.imagemagick.org/Usage/formats/#vector

try this to get to tiff


convert -density 72 input.pdf -fuzz 1% -trim +repage input.tiff

you can adjust the density value to get the tiff file to have the same dimensions as the pdf.

If the white border is perfectly uniform color, then you don't need the -fuzz at all.
Post Reply