C# Class OneNoteConversionTool.FormatReaders.EpubReader

Obtains data from epub file
ファイルを表示 Open project: OneNoteDev/OneNoteConversionTool Class Usage Examples

Public Methods

Method Description
EpubReader ( string filePath, string outputDir ) : System
GetPagePaths ( ) : List

Get the file paths of all pages

GetPageTitles ( ) : List

Gets the title of each page

GetPagesAsHtmlDocuments ( ) : List

Gets the html code for each page

GetPagesLevel ( ) : int>.Dictionary

Gets the level of each page as dictionary where the key in the dictionary is the full path of the xhtml page

GetTitle ( ) : string

Gets the title of the epub file

Private Methods

Method Description
AddImageDimenssionsToHtml ( HtmlAgilityPack.HtmlDocument htmlDoc ) : void

Add the dimenssions of images to the Html ensuring that the images has max width of 960 pixels

ConvertMathMl ( HtmlAgilityPack.HtmlDocument htmlDoc ) : void

Converts the MathML blocks to be readable by OneNote

GetOpfFilePath ( ) : string

Get the Opf file path

UseFullPathForLinks ( HtmlAgilityPack.HtmlDocument htmlDoc, string htmlPath ) : void

Replace the relative paths with full paths

Method Details

EpubReader() public method

public EpubReader ( string filePath, string outputDir ) : System
filePath string
outputDir string
return System

GetPagePaths() public method

Get the file paths of all pages
public GetPagePaths ( ) : List
return List

GetPageTitles() public method

Gets the title of each page
public GetPageTitles ( ) : List
return List

GetPagesAsHtmlDocuments() public method

Gets the html code for each page
public GetPagesAsHtmlDocuments ( ) : List
return List

GetPagesLevel() public method

Gets the level of each page as dictionary where the key in the dictionary is the full path of the xhtml page
public GetPagesLevel ( ) : int>.Dictionary
return int>.Dictionary

GetTitle() public method

Gets the title of the epub file
public GetTitle ( ) : string
return string