I have already tried with this code... I don't know why but it return me a
null object in "PdfDictionary action"... and the code thrown a exception in
the row...

Maybe I have done a bad # translation in c#... below my manipulatePdf code:

public void manipulatePdf(String src, String dest)  
    {
        PdfReader reader = new PdfReader(src);
        AcroFields form = reader.AcroFields;
        AcroFields.Item item = form.GetFieldItem("MyButtonName");
        PdfDictionary field = item.GetMerged(0);
        PdfDictionary action = field.GetAsDict(PdfName.A);
        PdfDictionary f = action.GetAsDict(PdfName.F);
        f.Put(PdfName.F, new
PdfString("http://itextpdf.com:8080/book/request";));
        PdfStamper stamper = new PdfStamper(reader, new FileStream(dest,
FileMode.OpenOrCreate));
        stamper.Close();
    }

Thanx again,

-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Changing-Submitbutton-Url-tp2336521p2336775.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to