C# 클래스 OneNoteConversionTool.FormatReaders.EpubReader

Obtains data from epub file
파일 보기 프로젝트 열기: OneNoteDev/OneNoteConversionTool 1 사용 예제들

공개 메소드들

메소드 설명
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