javascript - How to save annotations in pdftron in Nodejs? -


i need upload pdf , highlight text, add annotation note highlighted text , save edited pdf along highlighted text & annotation notes in nodejs. i'm using pdftron in regard , doing fine till uploading, highlighting , writing note highlighted part unable save data.

what pdftron guide clicking save button of note container (to i'm considering annotation if i'm not wrong) send 'post request' server url saving note. hits server url on page reload loading saved annotations don't send post request on same server url saving annotations on clicking save button.

here's webviewer initialization code:

var mywebviewer = new pdftron.webviewer({     type: "html5",     path: "/lib",     initialdoc: "/gettingstarted.pdf",     serverurl: "/annotations", //server url save & load annotation     documenttype: doctype,     config: "/lib/config.js",     documentid: "gettingstarted",     enableannotations: true,     usedownloader: false,     streaming: false }, viewerelement); 

please point out if misunderstood step or i'm doing wrong.

in annotation side bar there pull-down menu(arrow down icon) click , save button displayed there. knowing this, not user friendly create own button , fire manually. can fire manually with:

mywebviewer.instance.saveannotations(); 

Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -