Skip to content

yu4321/EMF-Metafile-String-Parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EMF2StringParser

A parser which can extract some texts from EMF Metafile and SPL spool file(which includes inner EMF file only). Early version yet.

How To Use

1. Load Metafile which you want to parse, with LoadMetaFile(System.Drawing.Imaging.Metafile, string, and byte[] is supported) or LoadFromSPLFile(string, and byte[] is supported) or Constructor with parameter.

Case A: Get Result as Lists of each RecordTypes

2. Execute ParseStart().

3. If Parsing was completed, results will be stored in ParsedExtTextOutWs, ParsedDrawStrings, ParsedSmallTextOuts as Generic.List .

Case B: Get Result as one combined string

2. Execute GetCombinedStringFromLoadedMetaFile();

3. Result will be returned as one string. Linebreaks and Whitespaces between record will be identified by the elements of LineBreakCandidates and SpaceCandidates.

Notes

  • This class is built for personal usage of its contributor. Cannot guarantee the consequences of uses.

About

Simple parser for parse texts from EMF Metafile and SPL spool file(which includes EMF file only).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages