|
Generated by JDiff |
||||||||
| PREV PACKAGE NEXT PACKAGE FRAMES NO FRAMES | |||||||||
This file contains all the changes in documentation in the packagecom.itextpdf.pdfocras colored differences. Deletions are shownlike this, and additions are shown like this.
If no deletions or additions are shown in an entry, the HTML tags will be what has changed. The new HTML tags are shown in the differences. If no documentation existed, and then some was added in a later version, this change is noted in the appropriate class pages of differences, but the change is not shown on this page. Only changes in existing text are shown here. Similarly, documentation which was inherited from another class or interface is not shown here.
Note that an HTML error in the new documentation may cause the display of other documentation changes to be presented incorrectly. For instance, failure to close a tag will cause all subsequent paragraphs to be displayed differently.
OcrPdfCreator is the class that creates PDF documents containing input images and text that was recognized using provided IOcrEngine.Class OcrPdfCreator, PdfDocument createPdfA(ListOcrPdfCreator 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 com.itextpdf.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.
Performs OCR with set parameters using provided IOcrEngine and creates PDF using provided com.itextpdf.kernel.pdf.PdfWriter,Class OcrPdfCreator, IOcrEngine getOcrEngine()}DocumentProperties and{@linkcom.itextpdf.kernel.pdf.PdfOutputIntent. PDF/A-3u document will be created if provided com.itextpdf.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 PdfDocument. If you don't need this, use the OcrPdfCreator.createPdfAFile method. In this case, only the pdfOcr event will be dispatched. @param inputImages java.util.List of images to be OCRed @param pdfWriter the com.itextpdf.kernel.pdf.PdfWriter object to write final PDF document to @param documentProperties document properties @param pdfOutputIntent com.itextpdf.kernel.pdf.PdfOutputIntent for PDF/A-3u document @param ocrProcessProperties extra OCR process properties passed to OcrProcessContext @return result PDF/A-3u com.itextpdf.kernel.pdf.PdfDocument object @throws PdfOcrException if it was not possible to read provided
oror default font
Gets used IOcrEngineClass OcrPdfCreator, void setOcrEngine(IOcrEngine). Returns IOcrEnginereader object to perform OCR.@return selected IOcrEngine instance
Sets IOcrEngine reader object to perform OCR.@param reader selected IOcrEngine instance
Gets required size for output PDF document. Real size of the page will be calculated according to the selected ScaleMode. @return required page size as com.itextpdf.kernel.geom.RectangleClass OcrPdfCreatorProperties, OcrPdfCreatorProperties setImageLayerName(String)
Sets name for the image layerClass OcrPdfCreatorProperties, OcrPdfCreatorProperties setPageSize(Rectangle)., {@code null} by default.If {@code null} then image is placed directly in canvas instead of layer. If image layer name is equal to text layer name then text and image placed in one layer. This property has no effect when pdf file is being OCRed (OcrPdfCreator.makePdfSearchable). @param layerName name of the image layer as java.lang.String @return the OcrPdfCreatorProperties instance
Sets required size for output PDF document.Class OcrPdfCreatorProperties, OcrPdfCreatorProperties setScaleMode(ScaleMode)This property has no effect when pdf file is being OCRed (OcrPdfCreator.makePdfSearchable). @param pageSize requested page size as com.itextpdf.kernel.geom.Rectangle @return the OcrPdfCreatorProperties instance
Sets scale mode for input images using availableoptionsoptions from ScaleMode enumeration.This property has no effect when pdf file is being OCRed (OcrPdfCreator.makePdfSearchable). @param scaleMode selected ScaleMode @return the OcrPdfCreatorProperties instance