Skip to main content
Skip table of contents

Adding fields to an existing form

Example to answer Click How can I add a new AcroForm field to a PDF?

addfield

##GITHUB:https://github.com/itext/itext-publications-examples-java/blob/master/src/main/java/com/itextpdf/samples/sandbox/acroforms/AddField.java##

##GITHUB:https://github.com/itext/itext-publications-samples-dotnet/blob/master/itext/itext.samples/itext/samples/sandbox/acroforms/AddField.cs##

addfieldandkids

##GITHUB:https://github.com/itext/itext-publications-examples-java/blob/master/src/main/java/com/itextpdf/samples/sandbox/stamper/AddFieldAndKids.java##

##GITHUB:https://github.com/itext/itext-publications-samples-dotnet/blob/master/itext/itext.samples/itext/samples/sandbox/stamper/AddFieldAndKids.cs##

Resources

https://github.com/itext/i7js-examples/blob/develop/src/main/resources/pdfs/form.pdf
https://github.com/itext/i7js-examples/blob/develop/src/main/resources/pdfs/hello.pdf

Results

https://github.com/itext/i7js-examples/blob/develop/cmpfiles/sandbox/acroforms/cmp_add_field.pdf

https://github.com/itext/i7js-examples/blob/develop/cmpfiles/sandbox/stamper/cmp_add_field_and_kids.pdf

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.