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 ?

More
11 years 1 week ago #8570 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
More
11 years 6 days ago #8619 by emanuele
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
More
11 years 6 days ago #8620 by imran.nazeer
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 ?
More
11 years 6 days ago #8621 by imran.nazeer
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 ?
More
11 years 6 days ago #8622 by emanuele
for each page you should do something like:
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]; }
this is an example, so I get only page 0
More
11 years 6 days ago #8623 by imran.nazeer
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
Powered by Kunena Forum