Title: RE: [iText-questions] Hidden fields not transmitted in Acrobat 6.x

Maybe Acrobat 6 needs a widget for the hidden field even if it's never shown.

Best Regards,
Paulo Soares

    -----Original Message-----
    From:   [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED] On Behalf Of Gerd Holzner

    Sent:   Monday, January 26, 2004 16:40
    To:     [EMAIL PROTECTED]
    Subject:        [iText-questions] Hidden fields not transmitted in Acrobat 6.x

    Hi,

    I use iText for dynymically creating PDFs which
    include a HTML form with some hidden parameters.

    code snippet:

            PdfAcroForm acroForm = writer.getAcroForm();

            PdfFormField hiddenField1 = acroForm.addHiddenField("name1", "value1");
            hiddenField1.setFieldFlags(0);
            PdfFormField hiddenField2 = acroForm.addHiddenField("name2", "value2");
            hiddenField2.setFieldFlags(0);

            PdfAction action = "" href="http://myhost.com/targeturl">http://myhost.com/targeturl", null, PdfAction.SUBMIT_HTML_FORMAT);

            ...
            PdfFormField button = new PdfFormField(writer, llx, lly, urx, ury, action);
            acroForm.addFormField(button);


    When the user clicks the button, an HTTP-Request with one parameter for
    each hidden field should be created. This works fine in Acrobat Reader 4.x and 5.x
    but fails in Acrobat Reader 6.x. Does anyone know why, or what has to be changed ?

    Thanx
    Gerd
    ______________________________________________________________________________
    Erdbeben im Iran: Zehntausende Kinder brauchen Hilfe. UNICEF hilft den
    Kindern - helfen Sie mit! https://www.unicef.de/spe/spe_03.php



    -------------------------------------------------------
    The SF.Net email is sponsored by EclipseCon 2004
    Premiere Conference on Open Tools Development and Integration
    See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
    http://www.eclipsecon.org/osdn
    _______________________________________________
    iText-questions mailing list
    [EMAIL PROTECTED]
    https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to