Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about iOS development and PDF
  • Page:
  • 1
  • 2

TOPIC:

Save annotations and draw it in new pdf 9 years 7 months ago #7030

  • Rossi
  • Rossi's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 49
  • Thank you received: 0
Hi, i create a json with the annotation detail for every page and save it into database.

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

Save annotations and draw it in new pdf 9 years 3 months ago #8241

  • mexy101
  • mexy101's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 2
  • Thank you received: 0
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.

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

Save annotations and draw it in new pdf 3 years 8 months ago #15198

  • chandan.kumar@thepsi.com
  • chandan.kumar@thepsi.com's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 1
  • Thank you received: 0
How can i resave annotation into new pdf. Kindly assist me in swift.

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

Save annotations and draw it in new pdf 3 years 8 months ago #15199

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
in last version, you can use [PDFAnnot export] to export annotation data, like:
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.
some annotation not support export, supported annotation type shall be:
ink/line/square/circle/text note/free text/polygon/polyline

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

  • Page:
  • 1
  • 2
Powered by Kunena Forum