C# Class PdfExtract.Extractor

Extracts text from PDF's
Inheritance: IDisposable
显示文件 Open project: poulfoged/pdf-extract

Public Methods

Method Description
Dispose ( ) : void
ExtractText ( Stream pdfStream ) : Stream

Extracts text from the provided stream - stream must be readable

ExtractToString ( Stream pdfStream, Encoding encoding = null ) : string

Extracts text from the provided stream - stream must be readable

LogTo ( object[]>.Action logger ) : Extractor

Changes any logging of output to the provided action

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
Log ( string format ) : void
ReadPdfToText ( ) : TemporaryFile

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

ExtractText() public method

Extracts text from the provided stream - stream must be readable
public ExtractText ( Stream pdfStream ) : Stream
pdfStream Stream Stream to extract to
return Stream

ExtractToString() public method

Extracts text from the provided stream - stream must be readable
public ExtractToString ( Stream pdfStream, Encoding encoding = null ) : string
pdfStream Stream Stream to extract to
encoding System.Text.Encoding
return string

LogTo() public method

Changes any logging of output to the provided action
public LogTo ( object[]>.Action logger ) : Extractor
logger object[]>.Action Logger to log to
return Extractor