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

TOPIC:

Add custom properties and methods 8 years 7 months ago #9563

  • tanvi
  • tanvi's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 16
  • Thank you received: 1
I need to add custom properties and methods for PDFAnnot for mapping them with my objects.
I have rtried doing the same, but he property returns nil.
The following user(s) said Thank You: pfrank

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

Add custom properties and methods 8 years 7 months ago #9580

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
Hi,

can you give an example of what you have done?

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

Add custom properties and methods 8 years 7 months ago #9583

  • tanvi
  • tanvi's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 16
  • Thank you received: 1
Hi Emanuele,

I have added a custom property, for example "ABC" and also relative methods like setABC and getABC.
So while I'm creating a new annotation (PDFAnnot object) I want to set the value of "ABC" as part of PDFAnnot class and retrieve it later.
Right now i see just 2 properties in the class PDFAnnot and they are PDF_ANNOT m_handle and PDF_PAGE m_page. I want to add my property over here.

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

Add custom properties and methods 8 years 7 months ago #9585

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
ok, as you can see in the PDFAnnot implementation, the annot informations are retrieved using library methods, that can read/write the annotation stored in the pdf file.
If you want to add custom properties, you have to use existing library methods to set/get values.
The following user(s) said Thank You: tanvi

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

Add custom properties and methods 8 years 7 months ago #9599

  • tanvi
  • tanvi's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 16
  • Thank you received: 1
Thanks Emanuele!

Also please if you can specify which are the properties or get/set methods which are currently unused by RadaeePDF, so that any changes made by me should not affect the internal code.

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

Add custom properties and methods 8 years 7 months ago #9611

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
Hi,

You can modify the demo project as you prefer.
You can create new methods or make changes; in the second case, I suggest to search in the project where the method is used.
The following user(s) said Thank You: tanvi

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

  • Page:
  • 1
  • 2
Powered by Kunena Forum