Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created May 5, 2021 12: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/25569f8d6657146f77f1cf93a22cd7f0 to your computer and use it in GitHub Desktop.
Save bjoerntx/25569f8d6657146f77f1cf93a22cd7f0 to your computer and use it in GitHub Desktop.
function exportAnnotations() {
$("#taAnnotations").val(TXDocumentViewer.annotations.export());
}
function loadAnnotations() {
var annotationData = $("#taAnnotations").val();
try {
TXDocumentViewer.annotations.load(annotationData);
} catch (error) {
$('.alert').show().delay(3000).fadeOut(300);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment