Skip to content

Latest commit

 

History

History
22 lines (12 loc) · 1 KB

README.md

File metadata and controls

22 lines (12 loc) · 1 KB

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.