Anybody know how could I convert a pdf figure into a eps one? Any console command, just like epstopdf?
Anybody know how could I convert a pdf figure into a eps one? Any console command, just like epstopdf?
You can use the convert command, but each page will be created as a new document. To run this command, say you have a file named "file.pdf" in your home directory that you want converted. Open a terminal and type this command:
Code:convert ~/file.pdf ~/file.eps
-o)
/\\
_\_VMessage void if penguin is violated...Don't mess with the penguin.
Hmm... Well, there exist commands for PDF -> PS, and PS -> EPS.Anybody know how could I convert a pdf figure into a eps one? Any console command, just like epstopdf?
So, you could try:
It'll probably do something strange, but give it a try.Code:sudo aptitude install ps2eps pdf2ps [file].pdf ps2eps [newfile].ps
Let me know how it works if you try it!
Mike
PS: There's another program for PDF -> PS called "pdftops". You could try both of them. I'm not sure what the difference is. Maybe you could tell me.
-----------------------------
PPS: Wait, there seems to be a simpler way... the "pdftops" command has a "-eps" switch. So try:
Code:pdftops -eps [file].pdf
Last edited by mbsullivan; May 15th, 2009 at 03:33 AM.
I'm exactly sure, but I think it is packaged with poppler-utils.
-o)
/\\
_\_VMessage void if penguin is violated...Don't mess with the penguin.
Convert is a part of the Imagemagick package, which is in the repo's.
http://www.imagemagick.org/script/co...line-tools.php
I have to report that the 'convert' command from Imagemagick might not do exacly what you expect.
The default behaviour (in my installation at least) seems to be to convert the pdf to an eps with embedded bitmap graphics.
That's not what I wanted.
edit:
'pdftops -eps [file].pdf' made it for me though (but it couldn't take multiple files like 'pdftops -eps *.pdf').
edit2:
'for f in *.pdf; do pdftops -eps $f; done' solved the second problem.
Last edited by tinwelint; July 27th, 2010 at 03:23 PM.
Thanks for the great tips! pdftops worked great and the imagemagick package was already pre-installed (I think it comes with Inkscape...?).
Bookmarks