Chris Chevalier
Chris Chevalier

Reputation: 650

How to have node convert `.emf` to `.jpg` (or anything I can place on a webpage)

Stuck in this weird situation at work. I have .doc files I'm parsing with Node.JS. They have photos in them that are .emf I want to display in my web app. I have no issue getting the emf file out of the word doc, but I can't figure out how to display it on a webpage. Simply embedding as is didn't work. I tried to find a utility to convert them automatically but with no luck. I thought of converting them myself but can't find any tecnhical info on the .emf file.

Any suggestions?

Upvotes: 5

Views: 2033

Answers (1)

bhantol
bhantol

Reputation: 9616

EMF (WMF) are the SVG like formats of the 1990's.

I can't give you the full solution in this space but checkout this thread that uses Apache Batik

If you don't want to build it yourself perhaps try the paid version of converters

If you can't afford I would recommend to host the Batik and make a service endpoint and make calls to generate the desired format from EMF. It may turn out actually faster.

Upvotes: 1

Related Questions