Establecer el tamaño del texto de AcroField en Auto

Utilizandoitextsharp, Intento establecer el tamaño de fuente de los campos de texto de mi formulario enauto.

Actualmente estoy haciendo algo como esto:

Object d = 0.0;

PdfReader reader = new PdfReader(path);

byte [] pdf;

using (var ms = new MemoryStream())
{
    PdfStamper stamper = new PdfStamper(reader, ms);

    AcroFields fields = stamper.AcroFields;

    foreach (var f in fields.Fields.Keys)
    {
        fields.SetFieldProperty(f, "textsize", d, null);
    }
}

Pero recibo el siguiente error:

System.InvalidCastException: Specified cast is not valid.
at iTextSharp.text.pdf.AcroFields.SetFieldProperty(String field, String name, Object value, Int32[] inst)

¿Cómo puedo arreglar esto?

Respuestas a la pregunta(1)

Su respuesta a la pregunta