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

More
10 years 6 months ago #9563 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.
More
10 years 6 months ago #9580 by emanuele
Hi,

can you give an example of what you have done?
More
10 years 6 months ago #9583 by tanvi
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.
More
10 years 6 months ago #9585 by emanuele
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.
More
10 years 6 months ago #9599 by tanvi
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.
More
10 years 6 months ago #9611 by emanuele
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.
Time to create page: 0.368 seconds
Powered by Kunena Forum