Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Submit your requests and polls about new features

TOPIC:

Saving annot to Database as Database/JSON ? 9 years 1 month ago #8624

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
The synchronization feature is not supported.
We can only help you on SDK features.

However, it could be a good feature to be developed, but at the moment it is not in our roadmap.

Please Log in or Create an account to join the conversation.

Saving annot to Database as Database/JSON ? 9 years 1 month ago #8625

  • imran.nazeer
  • imran.nazeer's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 27
  • Thank you received: 0
@Emanuele - Yes sync is not supported by Radaee. So we decided to do it.
What i need is, am creating a annot say., Circle. I want that points which i;m creating annot in local database or any format.
Then on opening the pdf again, the points which stored in local db to be rendered.

I wonder, how you still save the points of the annot even after closing/killing the app. Sure, it will not be in variable. I need this answer for my problem.
Hope you got what i mean .
thanks.

Please Log in or Create an account to join the conversation.

Saving annot to Database as Database/JSON ? 9 years 1 month ago #8626

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 690
  • Thank you received: 59
Dear Imran,
you should note that annotations are rendered within the core library and should be stored in the PDF file itself.
If you would like to do an annotations sharing mechanism there would be a couple of paths:
1 - you should create your own annotation's engine that won't use PDF specification. You will render your annotation on a transparent layer over the pdf page.
Look at the text search with word highlight in the demo project, you'll se how to get coordinates and how to write over the page canvas.

2 - you should create a mechanism that extract annotations from a file, serialize it (in a json or something else), synchronize it within a sync server.
The second way will be the better as annotation will stay in the pdf file (performances, portability, compatibility outside your application) but will be the most difficult to be written.
Synching mechanism needs some knowledge: each note need a uuid (you should create the uuid and put it on the annotation... I could guess in the annotation name/description).
Synching would work in the background when the PDF is open on the device.
You should do a scan on the page (or overall the entire document) get the annotation list, get annotation name, synch with server, get new annotation from server, add them on the right page, save the pdf file locally not to loose such annotations.

This is the support we could provide you, it's tight to our tool itself.
If you need more support on getting/setting annotation you're in the right place.
My colleagues is checking your need to store/retrive annotation as serialized structure, will be back to you as soon as possible.
The following user(s) said Thank You: imran.nazeer

Please Log in or Create an account to join the conversation.

Saving annot to Database as Database/JSON ? 9 years 1 month ago #8627

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
Do you need this feature only on iOS platform? or also on other platforms?

Please Log in or Create an account to join the conversation.

Saving annot to Database as Database/JSON ? 9 years 1 month ago #8628

  • imran.nazeer
  • imran.nazeer's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 27
  • Thank you received: 0
Thanks for the reply.
I need this in both Android and iOS.
However in future we have planned to develop our apps in windows too. But for now ANDROID & IOS

Please Log in or Create an account to join the conversation.

Saving annot to Database as Database/JSON ? 9 years 1 month ago #8630

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 690
  • Thank you received: 59
Imran, serialization isn't the right approach.
It shouldn't be cross platform.

Let's Emanuele have a couple of days, he will write a knowledge base article about export/import annotations.
It won't be a fully exhaustive code but a full sample to work on.
The following user(s) said Thank You: imran.nazeer

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum