Class OcrPdfInput
OCR input based on PDF data
Inherited Members
Namespace: IronOcr
Assembly: IronOcr.dll
Syntax
public class OcrPdfInput : OcrInputBase, IOcrInput, IDisposable
Constructors
OcrPdfInput(Byte[], String, PdfContents, IEnumerable<Int32>, CropRectangle[])
Create a new OCR input from the specified PDF data.
Specify PdfContents.OnlyImages to OCR individual images within the PDF or PdfContents.TextAndImages to OCR the entire PDF.
Declaration
public OcrPdfInput(byte[] Bytes, string Password = null, PdfContents OcrContent, IEnumerable<int> PageIndices = null, CropRectangle[] ContentAreas = null)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | Bytes | PDF data |
System.String | Password | PDF password |
PdfContents | OcrContent | OCR individual images within the PDF or OCR the entire PDF |
System.Collections.Generic.IEnumerable<System.Int32> | PageIndices | PDF pages to OCR |
IronSoftware.Drawing.CropRectangle[] | ContentAreas | Area of each page to OCR (one for EACH page) |
OcrPdfInput(Stream, String, PdfContents, IEnumerable<Int32>, CropRectangle[])
Create a new OCR input from the specified PDF stream
Specify PdfContents.OnlyImages to OCR individual images within the PDF or PdfContents.TextAndImages to OCR the entire PDF.
Declaration
public OcrPdfInput(Stream Stream, string Password = null, PdfContents OcrContent, IEnumerable<int> PageIndices = null, CropRectangle[] ContentAreas = null)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | Stream | PDF data stream |
System.String | Password | PDF password |
PdfContents | OcrContent | OCR individual images within the PDF or OCR the entire PDF |
System.Collections.Generic.IEnumerable<System.Int32> | PageIndices | PDF pages to OCR |
IronSoftware.Drawing.CropRectangle[] | ContentAreas | Area of each page to OCR (one for EACH page) |
OcrPdfInput(String, String, PdfContents, IEnumerable<Int32>, CropRectangle[])
Create a new OCR input from the specified PDF file
Specify PdfContents.OnlyImages to OCR individual images within the PDF or PdfContents.TextAndImages to OCR the entire PDF.
Declaration
public OcrPdfInput(string Path, string Password = null, PdfContents OcrContent, IEnumerable<int> PageIndices = null, CropRectangle[] ContentAreas = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | Path | PDF file path |
System.String | Password | PDF password |
PdfContents | OcrContent | OCR individual images within the PDF or OCR the entire PDF |
System.Collections.Generic.IEnumerable<System.Int32> | PageIndices | PDF pages to OCR |
IronSoftware.Drawing.CropRectangle[] | ContentAreas | Area of each page to OCR (one for EACH page) |
Properties
OcrContent
PDF content; determines what to OCR from within the PDF
Declaration
public PdfContents OcrContent { get; }
Property Value
Type | Description |
---|---|
PdfContents |