Wouldn't it be great if there was always a code example for what we need
to do? This in not the case. In AcroFiels get the merged dictionary for
the button. From this get the /A key. With that dictionary get the /F
key. With this last dictionary set the /F key with a PdfString with the
URL.

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Alan Zhang
> Sent: Monday, October 03, 2005 10:27 AM
> To: [email protected]
> Subject: [iText-questions] Change button URL
> 
> I am using PdfReader and PdfStamper to read in a template pdf 
> file, change some fields and write out as another pdf file.
>  
> In the template file, I have some buttons that have html URL. 
> I know the button names, what I need to do are:
>  
> 1. get the button according to the name
> 2. change the url of the button.
>  
> How could I do this? Any code examples?
>  
> Thanks,
>  
> Alan Zhang
> 
> ________________________________
> 
> Yahoo! for Good
> Click here to donate 
> <http://store.yahoo.com/redcross-donate3/>  to the Hurricane 
> Katrina relief effort. 
> 


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to