Skip to content
This repository has been archived by the owner on Dec 22, 2018. It is now read-only.

Can I use mysql DB instead of localStorage API? #84

Open
SaddamDeveloper opened this issue Nov 8, 2018 · 2 comments
Open

Can I use mysql DB instead of localStorage API? #84

SaddamDeveloper opened this issue Nov 8, 2018 · 2 comments

Comments

@SaddamDeveloper
Copy link

I want all the annotation and highlighted data for future use. Can I use mysql instead of localStorage API?

@rogercorrea
Copy link

Yes.
I developed a script to get annotations in localStorage and I send to webservice and save in my mySQL database. When the user open the PDF again, I pass the annotations saved to my script and load. But I made that change the script because the official version haven't support to it.

@nitimohi
Copy link

There are function in src/adapter/LocalStorageAdapter.js, getAnnotations and updateAnnotations modify these functions to send annotations to web-service on your server.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants