This demo shows how to add text fields to a PDF document.
It also creates the appearance streams of the fields depending on various field properties.