Class OcrPdfOptions
- Namespace
- SoftZenPdf.Ocr
- Assembly
- SoftZenPdf.Ocr.dll
Settings for OcrPdfCreator.
public sealed class OcrPdfOptions
- Inheritance
-
OcrPdfOptions
- Inherited Members
Properties
- Conformance
Creates the document for PDF/A archiving (PdfA2b) instead of an ordinary PDF: it gets an sRGB output intent and PDF/A metadata and is validated on save. The built-in text layer font is embedded, so it qualifies; a Font must be a TrueTypeFont, and CMYK images are refused. null (the default) creates an ordinary PDF.
- Font
The font for the text layer. null (the default) uses a built-in blank font that embeds in a few hundred bytes and accepts every script; a standard font replaces characters outside WinAnsiEncoding with '?'.
- PageOptions
Page size, margin and fit for each image page; null (the default) makes each page the size of its image at its resolution.
- ShowTextLayer
Draws the text layer in red instead of invisibly, to check how it lines up with the image. Use it with a visible Font.
- SkipPagesWithText
For AddTextLayer(string, string, string?): leaves pages that already have text (born-digital pages, or pages recognised before) unchanged. Defaults to true.