C# Class OneNoteConversionTool.FormatReaders.EpubReader

Obtains data from epub file
Afficher le fichier Open project: OneNoteDev/OneNoteConversionTool Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public EpubReader ( string filePath, string outputDir ) : System
filePath string
outputDir string
Résultat System

GetPagePaths() public méthode

Get the file paths of all pages
public GetPagePaths ( ) : List
Résultat List

GetPageTitles() public méthode

Gets the title of each page
public GetPageTitles ( ) : List
Résultat List

GetPagesAsHtmlDocuments() public méthode

Gets the html code for each page
public GetPagesAsHtmlDocuments ( ) : List
Résultat List

GetPagesLevel() public méthode

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
Résultat int>.Dictionary

GetTitle() public méthode

Gets the title of the epub file
public GetTitle ( ) : string
Résultat string