Here is a simple ImageMagic script. Remember the IM docs say that vector formats like pdf, svg, eps, etc are not handled the best way possible by IM, see IM and vector formats
#!/usr/bin/perl
use warnings;
use strict;
use Image::Magick;
my $img = Image::Magick->new;
$img->Read('zzimage.pdf');
$img->Rotate(-90); #if portrait/lanscape causes problem
$img->set('magick'=>'eps');
$img->Write(filename=>'zzzzimage.eps');
__END__
| [reply] [d/l] |
| [reply] |
I could not understand clearly. So could you please explain little more about pdftoeps convertion.
Thankyou.
| [reply] |
| [reply] |
imagemagick can be trouble (freeze/consume all memory ) with small pdf (3mb), so I split them up using PDF::Extract (dont bother with PDF::Xtract)
before processing
| [reply] |
In *NIX systems there exists:
pdf2ps
and
ps2eps
May be you find them useful, calling them with "system" | [reply] |
Iam using the windows platform. so kindly share your knowledge with any samples.
| [reply] |
Eventually you have to use something like ghostscript, a quick search for "pdf2eps" didnt help much maybe you find more pdf2eps. Perhaps there is something on CPAN (as already mentioned)
hth
MH
| [reply] |
Have you searched for a module to handle your conversion?
If not, you may wish to search CPAN (or -- if running Windows -- try ppm search EPS or ppm search PDF). Depending on your skills with selecting search terms, you may also find the big G helpful.
| [reply] [d/l] [select] |