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:
thank you in advance for any info,
m.
Best way to convert .pdf to [.eps & .tif]
- 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]
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.
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.