Ignore:
Timestamp:
2023-01-07T11:42:21+13:00 (18 months ago)
Author:
davidb
Message:

Allow for a page having now OCR'd text found

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs3-extensions/structured-image/trunk/src/js/document_extra.js

    r37113 r37117  
    7070   
    7171    var full_text_annotation = gv_ocr_json.fullTextAnnotation;
     72
     73    if (!full_text_annotation) {
     74    // Encountered a entry where no OCR'd text was found
     75    return;
     76    }
     77   
    7278    var pages = full_text_annotation.pages;
    7379    var num_pages = pages.length;
Note: See TracChangeset for help on using the changeset viewer.