I would like to embed the information defining the documentUrl, annotationUser and documentId (currently supplied by settings.js) within the web page that instantiates the WebViewer. I have read the two posts in this group that deal with this, but they only address supplying one custom value. I have found references on StackOverflow that show how to include JSON directly in the HTML
If I were to put the information within the <script type="application/json" id="mysettings"></script> block could the data be retrieved and passed through to the creation of the viewer?
The motivation for this is to eliminate the need to create a temporary file.
readerControl.getAnnotationUser();
var queryParams = ControlUtils.getQueryStringMap();
var documentUrl = queryParams.getString('d');
var documentId = queryParams.getString('did');