Dear all,
I am working on the update from v1.8 to 2.0
I have a config.js file, which contains this code:
$(document).bind("viewerLoaded", function(event) {
readerControl.fitPage();
var docViewer = readerControl.docViewer;
console.log(docViewer);
var annotManager = docViewer.GetAnnotationManager();
...
});
The line "readerControl.fitPage();" causes the viewer to show the file in fitpage mode, but then it throws this error in console:
TypeError: noteManager is undefined
http:// ... /PDFTron/html5/NotesPanel.js (line 1652, col 16)
In the line "var annotManager = docViewer.GetAnnotationManager();" I get this error:
TypeError: docViewer.GetAnnotationManager is not a function
http:// ... /PDFTron/html5/external/jquery-2.1.0.min.js line 2 > eval (line 20, col 20)
In the dom object shown in console (line above), I can see that the function is there.
Thank you in advance for your help