Support WMF files that start with META_PLACEABLE record #1
Labels
No Label
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sheetjs/js-wmf#1
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
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