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
imagePathsIEnumerable<string>JPEG, PNG, GIF, BMP or TIFF files, in page order.
outputPathstringThe 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
imagePathsIEnumerable<string>JPEG, PNG, GIF, BMP or TIFF files, in page order.
outputStreamThe stream to write the PDF to; it is left open.
Returns
- IReadOnlyList<OcrPage>
The text of each page.