Table of Contents

Class PdfExporter

Namespace
NAPS2.Pdf
Assembly
NAPS2.Sdk.dll

Exports images to a PDF file.

public class PdfExporter
Inheritance
PdfExporter
Inherited Members

Constructors

PdfExporter(ScanningContext)

public PdfExporter(ScanningContext scanningContext)

Parameters

scanningContext ScanningContext

Methods

Export(Stream, ICollection<ProcessedImage>, PdfExportParams?, OcrParams?, ProgressHandler)

public Task<bool> Export(Stream stream, ICollection<ProcessedImage> images, PdfExportParams? exportParams = null, OcrParams? ocrParams = null, ProgressHandler progress = default)

Parameters

stream Stream
images ICollection<ProcessedImage>
exportParams PdfExportParams
ocrParams OcrParams
progress ProgressHandler

Returns

Task<bool>

Export(string, ICollection<ProcessedImage>, PdfExportParams?, OcrParams?, ProgressHandler)

public Task<bool> Export(string path, ICollection<ProcessedImage> images, PdfExportParams? exportParams = null, OcrParams? ocrParams = null, ProgressHandler progress = default)

Parameters

path string
images ICollection<ProcessedImage>
exportParams PdfExportParams
ocrParams OcrParams
progress ProgressHandler

Returns

Task<bool>