wmf2canvas | Convert WMF/EMF | Canvas library
kandi X-RAY | wmf2canvas Summary
kandi X-RAY | wmf2canvas Summary
Convert WMF (Windows Metafile) image file to HTML5 canvas by using pure javascript. [license-image]: [license-url]: LICENSE.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Parses WMS format .
- Dec codecs
- Writable state of a stream .
- Convert Bem to binary buffer
- Readable stream .
- Recovers all buffered requests .
- Read a chunk .
- Reads from a list of parameters .
- Draw a piece
- Draws a rounded circle
wmf2canvas Key Features
wmf2canvas Examples and Code Snippets
Community Discussions
Trending Discussions on wmf2canvas
QUESTION
I'm looking for any way to display EMF files in (modern) browser.
- use case: opening vsdx (MS Visio) files directly in browser
- it's possible: there are many solutions server-side (php ImageMagic, java, c, c#)
- I found some client side, but not working for emf files: https://github.com/g21589/wmf2canvas
(don't care about IE, Google Chrome for now)
example source and expected (emf, png): resources
...ANSWER
Answered 2020-May-19 at 07:43I don't really have a good answer for you. But I notice in the issues page of the wmf2canvas github repository there is a discussion about EMF.
Where the developer points to UDOC.js for WMF/EMF/PDF/PS conversion.
Udoc.js is MIT licensed, and has both a fromEMF.js and a ToContext2D.js, so it seems between the two you should be able to achieve your goal.
It looks like it is all done inbrowser, without external apis, but I haven't been able to try, since I don't have any EMF files.
There is also a link to an online demo, but I can't figure out for sure if they enabled EMF/WMF for the demo, or only pdf/ps.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install wmf2canvas
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page