Previous | Next | (P-PDF) Developers
Topic: Re: PDF Forms: Problem with inserting duplicate pages
Conf: (P-PDF) Developers, Msg: 57994
From: htang
Date: 5/29/2002 05:29 PM
Hi Leonard,
Thanks for your reply.
I have now finally come up with my own solution, in part helped by your little hint:
>You may/will probably have to use the low level >CosObj calls to
>change the actual dictionary entries on the form >field annotation objects.
So, after obtaining a PDField object, I create a CosObj from it with AFPDFieldGetCosObj(). Then I create a PDAnnot object from that with PDAnnotFromCosObj(). Finally, now that I have a PDAnnot object, I'm able to call PDAnnotSetTitle() to change that field's label. Phew, quite long winded, but I noticed the PDAnnotSetTitle function before and wondered how I might get to use that function given only a PDField object to start off with.
So unless anyone else can come up with any other suggestions or short cuts to the above, consider this a wrap!
Regards,
Henry.