Method CreatePdf

Namespace
SoftZenPdf.Ocr
Assembly
SoftZenPdf.Ocr.dll

CreatePdf(IEnumerable<string>, string)

Creates a searchable PDF from images and saves it.

public IReadOnlyList<OcrPage> CreatePdf(IEnumerable<string> imagePaths, string outputPath)

Parameters

imagePaths IEnumerable<string>

JPEG, PNG, GIF, BMP or TIFF files, in page order.

outputPath string

The PDF file to write.

Returns

IReadOnlyList<OcrPage>

The text of each page.

CreatePdf(IEnumerable<string>, Stream)

Creates a searchable PDF from images and writes it to a stream.

public IReadOnlyList<OcrPage> CreatePdf(IEnumerable<string> imagePaths, Stream output)

Parameters

imagePaths IEnumerable<string>

JPEG, PNG, GIF, BMP or TIFF files, in page order.

output Stream

The stream to write the PDF to; it is left open.

Returns

IReadOnlyList<OcrPage>

The text of each page.