Is it possible to save the annot as JSON and sync with different devices.
For example, consider I'm creating a rectangle annot.
I want to save the annot into my database/json(i can convert) and again i have to insert the annot from database.
to make this feature, you should follow this steps:
- extract all the annotations with PDFPage annotAtIndex method and save the annot rect (or other informations needed, like the annot page).
- retrieve the informations from the database
- parse the informations paying attention to annot types
- add annotations on your pdf, using the specific method for the annot type
How to save the annotation points initially. This code will give how to extract. But consider, I'm opening a page in device 1 and adding circle and close the app and opens in other device. How can i view the added annot from device 1 to device 2.