Discussion:
convert to WMF (Windows metafile)?
(too old to reply)
Ryo
2006-02-11 02:59:33 UTC
Permalink
Hi there,

I'm looking for a tool to convert a postscript file
to a Windows metafile.

Searching the net with Google, I learned that this
question has been asked many times, and the standard
answer seems to be pstoedit. But, "pstoedit -f wmf"
says "Unsupported driver wmf" whereas both its manpage
and homepage clearly state that "wmf" is it. I also
tried "emf" in vain.

I downloaded the source package and compile it on my
Debian Linux box; the result was the same. I installed
pstoedit in the Cygwin package on my Windows machine;
same result. Hm. . .

Could somebody help?

Thank you,
Ryo
Jim Land
2006-02-11 23:12:17 UTC
Permalink
Post by Ryo
Hi there,
I'm looking for a tool to convert a postscript file
to a Windows metafile.
Searching the net with Google, I learned that this
question has been asked many times, and the standard
answer seems to be pstoedit. But, "pstoedit -f wmf"
says "Unsupported driver wmf" whereas both its manpage
and homepage clearly state that "wmf" is it. I also
tried "emf" in vain.
I downloaded the source package and compile it on my
Debian Linux box; the result was the same. I installed
pstoedit in the Cygwin package on my Windows machine;
same result. Hm. . .
I don't think you noticed the disclaimer on the pstoedit home page:

"Windows Meta Files (WMF) (Windows 9x/NT only)"

You need to get off your *nix platform and onto a Windows machine.

Otherwise, there are many other graphics programs for *nix, such as Gimp,
Netpbm, and ImageMagick.
Ryo
2006-02-13 21:30:12 UTC
Permalink
Jim Land (NO SPAM) wrote:
[. . .]
Post by Jim Land
"Windows Meta Files (WMF) (Windows 9x/NT only)"
Ah, of course! Thanks for pointing that out. I did read
that sentence, but my half-unconcious brain incorrectly interpreted
it to mean WMFs are used only on Windows or some such thing.
Post by Jim Land
You need to get off your *nix platform and onto a Windows machine.
Otherwise, there are many other graphics programs for *nix,
such as Gimp, Netpbm, and ImageMagick.
OK. But, I don't think Netpbm supports WMF; its manual listed
WMF specifically as an unsupported format. ImageMagick's convert
rejects wmf, too. Gimp doesn't have WMF as output format, ether.
(I think it converts a PostScript file to a pixmap when it reads it,
anyway.) I guess you are right in that I need to get off my Unix
platform (unless I get help from commercial products). I'll check
out pstoedit on Windows, or if I decide that I'll need a lot of
conversion in the future, I may invest on a commercial product.

Cheers,
Ryo
Ross Presser
2006-02-13 21:59:42 UTC
Permalink
Post by Ryo
I'll check
out pstoedit on Windows, or if I decide that I'll need a lot of
conversion in the future, I may invest on a commercial product.
You could also consider trying the Windows version of pstoedit, under
Wine on your unix machine.
j***@square1.nl
2006-02-13 12:07:00 UTC
Permalink
My company's commercial PDF FLY software is available as a standalone
command line tool on Linux, Solaris, HP-UX, AIX (and Windows) to batch
convert Level 1-3 PostScript files to both WMF and EMF. See
www.pdf-fly.com for details and free evaluation.

Jeroen Dekker
***@pdf-fly.com
George N. White III
2006-02-13 23:44:19 UTC
Permalink
Post by Ryo
I'm looking for a tool to convert a postscript file
to a Windows metafile.
Searching the net with Google, I learned that this
question has been asked many times, and the standard
answer seems to be pstoedit. But, "pstoedit -f wmf"
says "Unsupported driver wmf" whereas both its manpage
and homepage clearly state that "wmf" is it. I also
tried "emf" in vain.
I downloaded the source package and compile it on my
Debian Linux box; the result was the same. I installed
pstoedit in the Cygwin package on my Windows machine;
same result. Hm. . .
Can you convert your PS files to .svg (e.g., Inkscape)? OpenOffice.org
Draw (I have ver. 2.0) on linux can export to .wmf (and .emf). I've been
importing Inkscape .svg and making .emf. I do, however, sometimes get
glitches that require manual cleanup.
--
George N. White III <***@chebucto.ns.ca>
Ryo
2006-02-14 07:58:01 UTC
Permalink
George N. White III wrote:
[. . .]
Post by George N. White III
Can you convert your PS files to .svg (e.g., Inkscape)? OpenOffice.org
Draw (I have ver. 2.0) on linux can export to .wmf (and .emf). I've been
importing Inkscape .svg and making .emf. I do, however, sometimes get
glitches that require manual cleanup.
Thanks for the suggestion! But, I'm utterly confused. Pstoedit
on Linux has an option to convert to "svg". It converted my PostScript
file to an SVG format, for sure, and an SVG viewer (svgdisplay
for KDE) displayed it. So far so good. Now, I tried to open it
with OpenOffice Draw 2.0

$ oodraw tmp.svg

it presented a dialogue to choose a filter. Since I didn't know
which filter to choose, I quit and invoked OO Draw by

$ oodraw

and tried to insert my file from Insert->Picture->From File.
The menu presented includes "SGV StarDraw 2.0 (*.sgv)" but not "SVG".
Hm. . . OK, I renamed my file to "tmp.sgv" and tried to insert
it to OO Draw. This time, it tried to read it but aborted, saying
"Unknown graphics format".

Are we talking about the same format? Are there really both
"SGV" and "SVG"? I get a lot of hits for SVG on Google, but not much
for "SGV" which OO Draw is supposed to know.

Cheers,
Ryo
François Robert
2006-02-15 12:41:15 UTC
Permalink
"Ryo" <***@ccsr.u-tokyo.ac.jp> wrote in news:***@g14g2000cwa.googlegroups.com:
...
Post by Ryo
Are we talking about the same format?
I don't think so, no.
Post by Ryo
Are there really both "SGV" and "SVG"?
Yes, I think so. See
http://framework.openoffice.org/files/documents/25/897/filter_description.h
tml

<quote>
34 SGV - StarDraw 2.0 SGV - StarDraw 2.0
...
41 SVG - Scalable Vector Graphics draw_svg_Export
</unquote>

Disclaimer : I have never used OO. These are the results returned by
Google...
_______________________________________________________
François Robert
(to mail me, reverse character order in reply address)
George N. White III
2006-02-26 12:22:52 UTC
Permalink
Post by Ryo
[. . .]
Post by George N. White III
Can you convert your PS files to .svg (e.g., Inkscape)? OpenOffice.org
Draw (I have ver. 2.0) on linux can export to .wmf (and .emf). I've been
importing Inkscape .svg and making .emf. I do, however, sometimes get
glitches that require manual cleanup.
Thanks for the suggestion! But, I'm utterly confused. Pstoedit
on Linux has an option to convert to "svg". It converted my PostScript
file to an SVG format, for sure, and an SVG viewer (svgdisplay
for KDE) displayed it. So far so good. Now, I tried to open it
with OpenOffice Draw 2.0
$ oodraw tmp.svg
it presented a dialogue to choose a filter. Since I didn't know
which filter to choose, I quit and invoked OO Draw by
$ oodraw
and tried to insert my file from Insert->Picture->From File.
The menu presented includes "SGV StarDraw 2.0 (*.sgv)" but not "SVG".
Hm. . . OK, I renamed my file to "tmp.sgv" and tried to insert
it to OO Draw. This time, it tried to read it but aborted, saying
"Unknown graphics format".
Are we talking about the same format? Are there really both
"SGV" and "SVG"? I get a lot of hits for SVG on Google, but not much
for "SGV" which OO Draw is supposed to know.
Yes, two different formats.

Look at <http://www.ipd.uka.de/~hauma/svg-import/> for the SVG
filter.
--
George N. White III <***@chebucto.ns.ca>
Continue reading on narkive:
Loading...