File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed
commons/src/main/java/com/itextpdf/commons/actions Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ public final class NamespaceConstant {
5151 public static final String PDF_SWEEP = ITEXT + ".pdfcleanup" ;
5252 public static final String PDF_OCR = ITEXT + ".pdfocr" ;
5353 public static final String PDF_OCR_TESSERACT4 = PDF_OCR + ".tesseract4" ;
54+ public static final String PDF_OCR_ONNXTR = PDF_OCR + ".onnxtr" ;
5455
5556 public static final List <String > ITEXT_CORE_NAMESPACES = Collections .unmodifiableList (Arrays .asList (
5657 NamespaceConstant .CORE_EVENTS ,
Original file line number Diff line number Diff line change @@ -51,6 +51,11 @@ public final class ProductNameConstant {
5151 * pdfocr-tesseract4 constant.
5252 */
5353 public static final String PDF_OCR_TESSERACT4 = "pdfOcr-tesseract4" ;
54+ /**
55+ * pdfocr-onnxtr constant.
56+ */
57+ public static final String PDF_OCR_ONNXTR = "pdfOcr-onnxtr" ;
58+
5459 /**
5560 * set of product names.
5661 */
@@ -59,7 +64,8 @@ public final class ProductNameConstant {
5964 ProductNameConstant .ITEXT_CORE ,
6065 ProductNameConstant .PDF_HTML ,
6166 ProductNameConstant .PDF_SWEEP ,
62- ProductNameConstant .PDF_OCR_TESSERACT4
67+ ProductNameConstant .PDF_OCR_TESSERACT4 ,
68+ ProductNameConstant .PDF_OCR_ONNXTR
6369 )));
6470
6571 private ProductNameConstant () {}
Original file line number Diff line number Diff line change @@ -57,6 +57,9 @@ public class ContextManager {
5757 local .registerGenericContext (Collections .singletonList (NamespaceConstant .PDF_OCR_TESSERACT4 ),
5858 Collections .singleton (ProductNameConstant .PDF_OCR_TESSERACT4 ));
5959
60+ local .registerGenericContext (Collections .singletonList (NamespaceConstant .PDF_OCR_ONNXTR ),
61+ Collections .singleton (ProductNameConstant .PDF_OCR_ONNXTR ));
62+
6063 INSTANCE = local ;
6164 }
6265
You can’t perform that action at this time.
0 commit comments