C# Класс OneNoteConversionTool.FormatReaders.EpubReader

Obtains data from epub file
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

EpubReader() публичный Метод

public EpubReader ( string filePath, string outputDir ) : System
filePath string
outputDir string
Результат System

GetPagePaths() публичный Метод

Get the file paths of all pages
public GetPagePaths ( ) : List
Результат List

GetPageTitles() публичный Метод

Gets the title of each page
public GetPageTitles ( ) : List
Результат List

GetPagesAsHtmlDocuments() публичный Метод

Gets the html code for each page
public GetPagesAsHtmlDocuments ( ) : List
Результат List

GetPagesLevel() публичный Метод

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
Результат int>.Dictionary

GetTitle() публичный Метод

Gets the title of the epub file
public GetTitle ( ) : string
Результат string