How to make node convert `.emf` to`.jpg (or anything that I can put on a web page)

Stuck in this weird situation at work. I have .doc files. I understand Node.JS. They have photos in .emfwhich I want to display in my web application. I have no problem getting the emf file from the word doc, but I cannot figure out how to display it on a web page. Just embed as failed. I tried to find a utility to automatically convert them, but no luck. I was thinking about converting them myself, but I cannot find any technical information in the file .emf.

Any suggestions?

+4
source share
1 answer

EMF (WMF) are SVG formats in the 1990s.

I cannot give you a complete solution in this space, but check out this thread that uses Apache Batik

If you don’t want to build it yourself, try paying the version of the converters

If you cannot afford it, I would recommend placing Batik and making a service endpoint and making calls to create the desired format from EMF. It may be faster.

+2
source

Source: https://habr.com/ru/post/1656933/


All Articles