-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support WMF files that start with META_PLACEABLE record #1
Comments
Good catch! The initial problem was to support Word charts and image annotations, which are usually standard WMF. A PR would be appreciated :) |
Hi, may I know is the pull request applied? I run into the same error when trying to display WMF files generated by MathType, a Word extension for editing math formulas. I will be very appreciative of any help on this issue 💯 |
hello, I am interested in such a version as well |
I tried creating my own code from this https://joseluisbz.wordpress.com/2013/08/06/obtaining-size-or-dimension-of-images/ but its not working
|
Add support for |
Hi there, according to MS-WMF 2.3.2.3, it seems that WMF files may start with a
META_PLACEABLE
record before theMETA_HEADER
record. These files currently give a "Header: Type 52695 must be 1 or 2" error with js-wmf.I think these files could be supported by updating
image_size_prepped_bytes()
to check for files that start with theMETA_PLACEABLE
signature of 0x9AC6CDD7, and then skipping ahead 22 bytes to get to the actual META_HEADER record.As for sample files, it looks like most of the "iPres Systems Showcase" WMF files are of this "placeable" variant.
I'm happy to work on a PR if you would like.
The text was updated successfully, but these errors were encountered: