Search Results for

    Show / Hide Table of Contents

    Class OcrPdfInput

    OCR input based on PDF data

    Inheritance
    System.Object
    OcrInputBase
    OcrPdfInput
    Implements
    System.IDisposable
    Inherited Members
    OcrInputBase.Finalize()
    OcrInputBase.Dispose()
    OcrInputBase.SaveAsImages(String, AnyBitmap.ImageFormat)
    OcrInputBase.HighlightTextAndSaveAsImages(IronTesseract, String, ResultHighlightType)
    OcrInputBase.FindTextRegion()
    OcrInputBase.FindMultipleTextRegions()
    OcrInputBase.StampCropRectanglesAndSaveAs(Rectangle[], Color, String, AnyBitmap.ImageFormat)
    OcrInputBase.StampCropRectangleAndSaveAs(Rectangle, Color, String, AnyBitmap.ImageFormat)
    OcrInputBase.StampCropRectangle(OcrInput, Rectangle, Color)
    OcrInputBase.StampCropRectangles(OcrInput, Rectangle[], Color)
    OcrInputBase.ApplyMultipleFilters(OcrFilters, Double, Int32, Int32, Int32, Boolean, Nullable<Int32>)
    OcrInputBase.WithTitle(String)
    OcrInputBase.Scale(Int32, Boolean)
    OcrInputBase.EnhanceResolution(Int32)
    OcrInputBase.AdaptiveThreshold(Nullable<Single>)
    OcrInputBase.Rotate(Double)
    OcrInputBase.Binarize()
    OcrInputBase.ToGrayScale()
    OcrInputBase.Sharpen()
    OcrInputBase.ReplaceColor(Color, Color, Int32)
    OcrInputBase.SelectTextColor(Color, Int32)
    OcrInputBase.SelectTextColors(IEnumerable<Color>, Int32)
    OcrInputBase.Contrast(Single)
    OcrInputBase.DeNoise(Boolean)
    OcrInputBase.Despeckle(Boolean)
    OcrInputBase.Invert(Boolean)
    OcrInputBase.Erode(Boolean)
    OcrInputBase.Open(Boolean)
    OcrInputBase.Close(Boolean)
    OcrInputBase.HoughTransformStraighten(Int32)
    OcrInputBase.Deskew(Int32)
    OcrInputBase.DetectPageOrientation()
    OcrInputBase.Scale(Int32, Int32, Boolean)
    OcrInputBase.Dilate(Boolean)
    OcrInputBase.GetPages()
    OcrInputBase.RemovePages(IEnumerable<Int32>)
    OcrInputBase.RemovePage(Int32)
    OcrInputBase.PageCount()
    OcrInputBase.TargetDPI
    OcrInputBase.Title
    Namespace: IronOcr
    Assembly: IronOcr.dll
    Syntax
    public class OcrPdfInput : OcrInputBase, IDisposable

    Constructors

    OcrPdfInput(IDocumentId, PdfContents, IEnumerable<Int32>, Rectangle[])

    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(IDocumentId Document, PdfContents OcrContent, IEnumerable<int> PageIndices = null, Rectangle[] ContentAreas = null)
    Parameters
    Type Name Description
    IronSoftware.IDocumentId Document

    PDF data

    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.Rectangle[] ContentAreas

    Area of each page to OCR (one for EACH page)

    OcrPdfInput(Byte[], String, PdfContents, IEnumerable<Int32>, Rectangle[])

    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, Rectangle[] 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.Rectangle[] ContentAreas

    Area of each page to OCR (one for EACH page)

    OcrPdfInput(Stream, String, PdfContents, IEnumerable<Int32>, Rectangle[])

    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, Rectangle[] 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.Rectangle[] ContentAreas

    Area of each page to OCR (one for EACH page)

    OcrPdfInput(String, String, PdfContents, IEnumerable<Int32>, Rectangle[])

    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, Rectangle[] 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.Rectangle[] 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

    Implements

    System.IDisposable

    Inherited members

    Finalize()
    Dispose()
    SaveAsImages(String, AnyBitmap.ImageFormat)
    HighlightTextAndSaveAsImages(IronTesseract, String, ResultHighlightType)
    FindTextRegion()
    FindMultipleTextRegions()
    StampCropRectanglesAndSaveAs(Rectangle[], Color, String, AnyBitmap.ImageFormat)
    StampCropRectangleAndSaveAs(Rectangle, Color, String, AnyBitmap.ImageFormat)
    StampCropRectangle(OcrInput, Rectangle, Color)
    StampCropRectangles(OcrInput, Rectangle[], Color)
    ApplyMultipleFilters(OcrFilters, Double, Int32, Int32, Int32, Boolean, Nullable<Int32>)
    WithTitle(String)
    Scale(Int32, Boolean)
    EnhanceResolution(Int32)
    AdaptiveThreshold(Nullable<Single>)
    Rotate(Double)
    Binarize()
    ToGrayScale()
    Sharpen()
    ReplaceColor(Color, Color, Int32)
    SelectTextColor(Color, Int32)
    SelectTextColors(IEnumerable<Color>, Int32)
    Contrast(Single)
    DeNoise(Boolean)
    Despeckle(Boolean)
    Invert(Boolean)
    Erode(Boolean)
    Open(Boolean)
    Close(Boolean)
    HoughTransformStraighten(Int32)
    Deskew(Int32)
    DetectPageOrientation()
    Scale(Int32, Int32, Boolean)
    Dilate(Boolean)
    GetPages()
    RemovePages(IEnumerable<Int32>)
    RemovePage(Int32)
    PageCount()
    TargetDPI
    Title
    ☀
    ☾
    Downloads
    • Download with Nuget
    • Start for Free
    In This Article
    Back to top
    Install with Nuget
    Want to deploy IronOCR to a live project for FREE?
    What’s included?
    30 days of fully-functional product
    Test and share in a live environment
    No watermarks in production
    Get your free 30-day Trial Key instantly.
    No credit card or account creation required
    Your Trial License Key has been emailed to you.
    Download IronOCR free to apply
    your Trial Licenses Key
    Install with NuGet View Licenses
    Licenses from $499. Have a question? Get in touch.