C# Class NAPS2.ImportExport.Pdf.PdfSharpExporter

Inheritance: IPdfExporter
Datei anzeigen Open project: cyanfish/naps2

Public Methods

Method Description
Export ( string path, IEnumerable images, PdfSettings settings, string ocrLanguageCode, bool>.Func progressCallback ) : bool
PdfSharpExporter ( IOcrEngine ocrEngine ) : System

Private Methods

Method Description
AdjustBounds ( Rectangle b, float hAdjust, float vAdjust ) : RectangleF
BuildDocumentWithOcr ( bool>.Func progressCallback, PdfSharp.Pdf.PdfDocument document, IEnumerable images, string ocrLanguageCode ) : bool
BuildDocumentWithoutOcr ( bool>.Func progressCallback, PdfSharp.Pdf.PdfDocument document, IEnumerable images ) : bool
CalculateFontSize ( string text, RectangleF adjustedBounds, XGraphics gfx ) : int
DrawImageOnPage ( PdfPage page, Bitmap img ) : void
DrawOcrTextOnPage ( PdfPage page, OcrResult ocrResult ) : void
GetRealSize ( Bitmap img ) : Size

Method Details

Export() public method

public Export ( string path, IEnumerable images, PdfSettings settings, string ocrLanguageCode, bool>.Func progressCallback ) : bool
path string
images IEnumerable
settings PdfSettings
ocrLanguageCode string
progressCallback bool>.Func
return bool

PdfSharpExporter() public method

public PdfSharpExporter ( IOcrEngine ocrEngine ) : System
ocrEngine IOcrEngine
return System