- Posts: 27
- Thank you received: 0
Microsoft Windows Phone 8.1 support ends (13 Jul 2017)
Microsoft has ended support for Windows Phone 8.1
Submit your requests and polls about new features
Saving annot to Database as Database/JSON ?
- imran.nazeer
- Topic Author
- Offline
- Junior Member
-
Less
More
11 years 1 week ago #8570
by imran.nazeer
Saving annot to Database as Database/JSON ? was created by imran.nazeer
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.
Thanks in Advance
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.
Thanks in Advance
11 years 6 days ago #8619
by emanuele
Replied by emanuele on topic Saving annot to Database as Database/JSON ?
Hi,
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
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
- imran.nazeer
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 27
- Thank you received: 0
11 years 6 days ago #8620
by imran.nazeer
Replied by imran.nazeer on topic Saving annot to Database as Database/JSON ?
extract all the annotations with PDFPage annotAtIndex method and save the annot rect (or other informations needed, like the annot page).
I cant get any information from this. I kept debug pointer nothing happens. can you please elabarate more on this ?
I cant get any information from this. I kept debug pointer nothing happens. can you please elabarate more on this ?
- imran.nazeer
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 27
- Thank you received: 0
11 years 6 days ago #8621
by imran.nazeer
Replied by imran.nazeer on topic Saving annot to Database as Database/JSON ?
extract all the annotations with PDFPage annotAtIndex method and save the annot rect (or other informations needed, like the annot page).
I cant get any information from this. I kept debug pointer nothing happens. can you please elabarate more on this ?
I cant get any information from this. I kept debug pointer nothing happens. can you please elabarate more on this ?
11 years 6 days ago #8622
by emanuele
Replied by emanuele on topic Saving annot to Database as Database/JSON ?
for each page you should do something like:
this is an example, so I get only page 0
Code:
PDFVPage *vpage = [m_view vGetPage:0];
PDFPage *page = [vpage GetPage];
for (int i = 0; i < page.annotCount; i++) {
PDFAnnot *anAnnot = [page annotAtIndex:i];
PDF_RECT rect;
[anAnnot getRect:&rect];
}
- imran.nazeer
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 27
- Thank you received: 0
11 years 6 days ago #8623
by imran.nazeer
Replied by imran.nazeer on topic Saving annot to Database as Database/JSON ?
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.
Time to create page: 0.420 seconds