Skip to content

RtfDomParser (a.k.a. DCSoft.RTF) is an open source C# library for parsing RTF documents and generating RTF DOM Tree initially created by yuansfu.

License

Notifications You must be signed in to change notification settings

bifacil/RtfDomParser

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RtfDomParser (a.k.a. DCSoft.RTF)

RtfDomParser is an open source C# library for parsing RTF documents and generating RTF DOM Tree.

This is a fork from this project:

https://github.com/SourceCodeBackup/RtfDomParser/

I've added some basic support for "stylesheets".

This fork is able to parse RTF like this:

{\rtf1
{\fonttbl
  {\f0 Calibri;}
  {\f1\fcharset2 Symbol;}
}
{\colortbl;\red128\green128\blue128;\red46\green116\blue181;\red0\green0\blue255;\red255\green255\blue0;}
{\*\defchp \fs22}
{\*\defpap \sa278}
{\stylesheet
  {\ql Normal;}
  {\s1 Quote;}
  {\cs13 Code;}
  {\s3 H1;}
  {\s4 H2;}
  {\s5 H3;}
  {\s6 H4;}
  {\s7 H5;}
  {\s8 H6;}
  {\cs11 HighLight;}
  {\cs12 HTML;}
}
{\*\listtable
{\list\listtemplateid-1\listid1353470507
  {\listlevel\f1{\leveltext\leveltemplateid560950967 \'01\u183\'b7;}}}
}
{\*\listoverridetable
  {\listoverride\listid1353470507\ls1}
}



{\pard\s3 Titulo 1\par}
}

About

RtfDomParser (a.k.a. DCSoft.RTF) is an open source C# library for parsing RTF documents and generating RTF DOM Tree initially created by yuansfu.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rich Text Format 61.0%
  • C# 39.0%