OcrPdfCreator is the class that creates PDF documents containing input images and text that was recognized using provided IOcrEngine.
OcrPdfCreator is the class that creates PDF documents containing input images and text that was recognized using provided IOcrEngine. OcrPdfCreator provides possibilities to set list of input images to be used for OCR, to set scaling mode for images, to set color of text in output PDF document, to set fixed size of the PDF document's page and to perform OCR using given images and to return iText.Kernel.Pdf.PdfDocument as result. OCR is based on the provided IOcrEngine (e.g. tesseract reader). This parameter is obligatory and it should be provided in constructor or using setter.
| PdfDocument iText.Pdfocr.OcrPdfCreator.CreatePdf |
( |
IList< FileInfo > |
inputImages, |
|
|
PdfWriter |
pdfWriter |
|
) |
|
|
|
inline |
Performs OCR with set parameters using provided IOcrEngine and creates PDF using provided iText.Kernel.Pdf.PdfWriter.
Performs OCR with set parameters using provided IOcrEngine and creates PDF using provided iText.Kernel.Pdf.PdfWriter.
NOTE that after executing this method you will have a product event from the both itextcore and pdfOcr. Therefore, use this method only if you need to work with the generated iText.Kernel.Pdf.PdfDocument . If you don't need this, use the CreatePdfFile(System.Collections.Generic.IList, System.IO.FileInfo) method. In this case, only the pdfOcr event will be dispatched.
-
Parameters
-
System.Collections.IList of images to be OCRed
-
Parameters
-
| pdfWriter |
the iText.Kernel.Pdf.PdfWriter object to write final PDF document to |
-
Returns
-
result iText.Kernel.Pdf.PdfDocument object
| PdfDocument iText.Pdfocr.OcrPdfCreator.CreatePdf |
( |
IList< FileInfo > |
inputImages, |
|
|
PdfWriter |
pdfWriter, |
|
|
DocumentProperties |
documentProperties |
|
) |
|
|
|
inline |
Performs OCR with set parameters using provided IOcrEngine and creates PDF using provided iText.Kernel.Pdf.PdfWriter.
Performs OCR with set parameters using provided IOcrEngine and creates PDF using provided iText.Kernel.Pdf.PdfWriter.
NOTE that after executing this method you will have a product event from the both itextcore and pdfOcr. Therefore, use this method only if you need to work with the generated iText.Kernel.Pdf.PdfDocument . If you don't need this, use the CreatePdfFile(System.Collections.Generic.IList, System.IO.FileInfo) method. In this case, only the pdfOcr event will be dispatched.
-
Parameters
-
System.Collections.IList of images to be OCRed
-
Parameters
-
| pdfWriter |
the iText.Kernel.Pdf.PdfWriter object to write final PDF document to |
| documentProperties |
document properties |
-
Returns
-
result iText.Kernel.Pdf.PdfDocument object
| PdfDocument iText.Pdfocr.OcrPdfCreator.CreatePdfA |
( |
IList< FileInfo > |
inputImages, |
|
|
PdfWriter |
pdfWriter, |
|
|
DocumentProperties |
documentProperties, |
|
|
PdfOutputIntent |
pdfOutputIntent |
|
) |
|
|
|
inline |
Performs OCR with set parameters using provided IOcrEngine and creates PDF using provided iText.Kernel.Pdf.PdfWriter , iText.Kernel.Pdf.DocumentProperties and iText.Kernel.Pdf.PdfOutputIntent.
Performs OCR with set parameters using provided IOcrEngine and creates PDF using provided iText.Kernel.Pdf.PdfWriter , iText.Kernel.Pdf.DocumentProperties and iText.Kernel.Pdf.PdfOutputIntent . PDF/A-3u document will be created if provided iText.Kernel.Pdf.PdfOutputIntent is not null.
NOTE that after executing this method you will have a product event from the both itextcore and pdfOcr. Therefore, use this method only if you need to work with the generated iText.Kernel.Pdf.PdfDocument . If you don't need this, use the CreatePdfAFile(System.Collections.Generic.IList, System.IO.FileInfo, iText.Kernel.Pdf.PdfOutputIntent) method. In this case, only the pdfOcr event will be dispatched.
-
Parameters
-
System.Collections.IList of images to be OCRed
-
Parameters
-
| pdfWriter |
the iText.Kernel.Pdf.PdfWriter object to write final PDF document to |
| documentProperties |
document properties |
| pdfOutputIntent |
|
iText.Kernel.Pdf.PdfOutputIntent for PDF/A-3u document
-
Returns
-
result PDF/A-3u iText.Kernel.Pdf.PdfDocument object
| PdfDocument iText.Pdfocr.OcrPdfCreator.CreatePdfA |
( |
IList< FileInfo > |
inputImages, |
|
|
PdfWriter |
pdfWriter, |
|
|
PdfOutputIntent |
pdfOutputIntent |
|
) |
|
|
|
inline |
Performs OCR with set parameters using provided IOcrEngine and creates PDF using provided iText.Kernel.Pdf.PdfWriter and iText.Kernel.Pdf.PdfOutputIntent.
Performs OCR with set parameters using provided IOcrEngine and creates PDF using provided iText.Kernel.Pdf.PdfWriter and iText.Kernel.Pdf.PdfOutputIntent . PDF/A-3u document will be created if provided iText.Kernel.Pdf.PdfOutputIntent is not null.
NOTE that after executing this method you will have a product event from the both itextcore and pdfOcr. Therefore, use this method only if you need to work with the generated iText.Kernel.Pdf.PdfDocument . If you don't need this, use the CreatePdfAFile(System.Collections.Generic.IList, System.IO.FileInfo, iText.Kernel.Pdf.PdfOutputIntent) method. In this case, only the pdfOcr event will be dispatched.
-
Parameters
-
System.Collections.IList of images to be OCRed
-
Parameters
-
| pdfWriter |
the iText.Kernel.Pdf.PdfWriter object to write final PDF document to |
| pdfOutputIntent |
|
iText.Kernel.Pdf.PdfOutputIntent for PDF/A-3u document
-
Returns
-
result PDF/A-3u iText.Kernel.Pdf.PdfDocument object
| virtual void iText.Pdfocr.OcrPdfCreator.CreatePdfAFile |
( |
IList< FileInfo > |
inputImages, |
|
|
FileInfo |
outPdfFile, |
|
|
PdfOutputIntent |
pdfOutputIntent |
|
) |
|
|
|
inlinevirtual |
Performs OCR with set parameters using provided IOcrEngine and creates PDF using provided System.IO.FileInfo and iText.Kernel.Pdf.PdfOutputIntent.
Performs OCR with set parameters using provided IOcrEngine and creates PDF using provided System.IO.FileInfo and iText.Kernel.Pdf.PdfOutputIntent. PDF/A-3u document will be created if provided iText.Kernel.Pdf.PdfOutputIntent is not null.
-
Parameters
-
System.Collections.IList of images to be OCRed
-
Parameters
-
| outPdfFile |
the System.IO.FileInfo object to write final PDF document to |
| pdfOutputIntent |
|
iText.Kernel.Pdf.PdfOutputIntent for PDF/A-3u document