FieldIt is a Google Documents™ add-on which allows to create document templates with fields that can be filled through a form.
With FieldIt, you can insert special markup in your document like {{first_name}} or {{if male}} ... {{else}} ... {{endif}}, and then fill a form to get a copy of your document instantiated with custom content.