Text for a search index
Drop a file on the page: it is converted into BDF, and its text comes out below, page by page, with the metadata of the document.
It is what a server hands to a search engine (Document.SearchText), extracted by the same Go code built as WebAssembly. The file is not uploaded anywhere.
or drop one anywhere on the page.
no document yet
The same on a server
res, err := converter.ConvertFile(path, "", &converter.Options{})
// …
text, err := res.Doc.SearchText() // text.Meta, and text.Views[i].Pages[j].Text
err = json.NewEncoder(w).Encode(text)