- Posts: 49
- Thank you received: 0
Microsoft Windows Phone 8.1 support ends (13 Jul 2017)
Microsoft has ended support for Windows Phone 8.1
Questions about iOS development and PDF
Save annotations and draw it in new pdf
IP: 192.168.0.71
12 years 3 weeks ago #7030
by Rossi
Replied by Rossi on topic Save annotations and draw it in new pdf
Hi, i create a json with the annotation detail for every page and save it into database.
IP: 192.168.0.71
11 years 8 months ago #8241
by mexy101
Replied by mexy101 on topic Save annotations and draw it in new pdf
Hi Rossi
can you please give example on saving your annotations (json). I am struggling to save mine in a database. as a matter of fact, i dont know how to go on about saving it.
can you please give example on saving your annotations (json). I am struggling to save mine in a database. as a matter of fact, i dont know how to go on about saving it.
- [email protected]
- Offline
- New Member
-
Less
More
- Posts: 1
- Thank you received: 0
IP: 61.0.26.226
6 years 1 month ago #15198
by [email protected]
Replied by [email protected] on topic Save annotations and draw it in new pdf
How can i resave annotation into new pdf. Kindly assist me in swift.
IP: 111.196.243.34
6 years 1 month ago #15199
by radaee
Replied by radaee on topic Save annotations and draw it in new pdf
in last version, you can use [PDFAnnot export] to export annotation data, like:
some annotation not support export, supported annotation type shall be:
ink/line/square/circle/text note/free text/polygon/polyline
Code:
int data_size = [PDFAnnot export:NULL :0];
unsigned char *data = (unsigned char *)malloc(data_size);
[PDFAnnot export:data :data_size];
//todo save data and data_size to your DB or storage.
free(data);//free memory.
ink/line/square/circle/text note/free text/polygon/polyline
Time to create page: 0.368 seconds