General questions

When I perform a convert how do I save the resulting text to a variable so I can then save the result to a database?

When I perform a convert how do I save the resulting text to a variable so I can then save the result to a database? My code is:

  

<div class="col-lg-6 col-md-12 col-sm-12 col-12">
					<nav>
						<div class="button-div">
							<button id="undo" class="nav-btn btn-fab-mini btn-lightBlue" disabled>
								<img src="images/undo.png">
							</button>
							<button id="redo" class="nav-btn btn-fab-mini btn-lightBlue" disabled>
								<img src="images/redo.png">
							</button>
						</div>
						<select id="language"></select>
						
						<div class="spacer"></div>
					    <input type="text" class="input-field" id="importContentField" data-type="text/plain" placeholder="e.g. hello world">
					    <button class="classic-btn" id="importContent">Import</button>
					</nav>
					
					<div id="editor" touch-action="none"></div>
				</div>

 

 


Thank you Gwenaëlle,

Your recommended post got me part way there. I have added a comment to the post requesting further help if you could review that please.

Kind regards,

Glyn


Hi Glyn,


If you would like to save the text recognition result, you might rather perform an on demand export.
Please refer to following post: https://developer-support.myscript.com/support/discussions/topics/16000030853


Best regards,


Gwenaëlle

  • Support
  • Forums
  • General questions
  • When I perform a convert how do I save the resulting text to a variable so I can then save the result to a database?