- Posts: 16
- Thank you received: 1
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
Add custom properties and methods
10 years 6 months ago #9563
by tanvi
Add custom properties and methods was created by tanvi
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.
I have rtried doing the same, but he property returns nil.
10 years 6 months ago #9580
by emanuele
Replied by emanuele on topic Add custom properties and methods
Hi,
can you give an example of what you have done?
can you give an example of what you have done?
10 years 6 months ago #9583
by tanvi
Replied by tanvi on topic Add custom properties and methods
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.
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.
10 years 6 months ago #9585
by emanuele
Replied by emanuele on topic Add custom properties and methods
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.
If you want to add custom properties, you have to use existing library methods to set/get values.
10 years 6 months ago #9599
by tanvi
Replied by tanvi on topic Add custom properties and methods
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.
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.
10 years 6 months ago #9611
by emanuele
Replied by emanuele on topic Add custom properties and methods
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.
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.
Time to create page: 0.368 seconds