Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created October 5, 2023 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/dba280ad1a62e784d5266ce32328894c to your computer and use it in GitHub Desktop.
Save bjoerntx/dba280ad1a62e784d5266ce32328894c to your computer and use it in GitHub Desktop.
export function saveDocument() {
// save the document on TXTextControl object
TXTextControl.saveDocument(TXTextControl.StreamType.InternalUnicodeFormat, function (document) {
// call the .NET method 'ProcessDocument' with the saved document data
dotNetObject.invokeMethodAsync('ProcessDocument', document.data);
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment