Skip to content

Commit

Permalink
Issue #944: Un-hide arguments field in Text Extraction action.
Browse files Browse the repository at this point in the history
  • Loading branch information
alxp committed Jun 2, 2023
1 parent 48b73c5 commit 1bdb732
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,10 @@ public function defaultConfiguration() {
*/
public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
$form = parent::buildConfigurationForm($form, $form_state);
$form['mimetype']['#description'] = $this->t('Mimetype to convert to (e.g. application/xml, etc...)');
$form['mimetype']['#value'] = 'text/plain';
$form['mimetype']['#type'] = 'textfield';


unset($form['args']);
$form['args']['#description'] = $this->t("Arguments to send to Tesseract. To generate hOCR, use:<br /><code>-c tessedit_create_hocr=1 -c hocr_font_info=0</code>");

return $form;
}

Expand Down

0 comments on commit 1bdb732

Please sign in to comment.