nuxeo-development-framework 5.0.7 → 5.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/nuxeo-development-framework.umd.js +2 -1
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/components/pdf-tron/pdftron/pdftron.component.js +3 -2
- package/fesm2015/nuxeo-development-framework.js +2 -1
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/package.json +1 -1
|
@@ -30856,9 +30856,10 @@
|
|
|
30856
30856
|
display: 'block'
|
|
30857
30857
|
});
|
|
30858
30858
|
}, _PdftronComponent_afterLoadWebViewer = function _PdftronComponent_afterLoadWebViewer(instance) {
|
|
30859
|
+
var _a, _b;
|
|
30859
30860
|
this.isArabic ? instance.setLanguage('ar') : instance.setLanguage('en');
|
|
30860
30861
|
this.pdftronService.instance = this.webViewerInstance = instance;
|
|
30861
|
-
if (this.correspondance.facets.indexOf('ctocr') > -1) {
|
|
30862
|
+
if (this.correspondance.facets.indexOf('ctocr') > -1 && ((_b = (_a = this.correspondance) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b['ctocr:recognizedJson'])) {
|
|
30862
30863
|
this.fileWithOcr = true;
|
|
30863
30864
|
this.pages = JSON.parse(this.correspondance.properties['ctocr:recognizedJson']);
|
|
30864
30865
|
// override search funtion to use our search in ocr not defult search
|