C# Class NAPS2.ImportExport.Pdf.PdfSharpExporter

Inheritance: IPdfExporter
Afficher le fichier Open project: cyanfish/naps2

Méthodes publiques

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

Private Methods

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

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
Résultat bool

PdfSharpExporter() public méthode

public PdfSharpExporter ( IOcrEngine ocrEngine ) : System
ocrEngine IOcrEngine
Résultat System