public void CellLayout(PdfPCell cell, iTextSharp.text.Rectangle rect, PdfContentByte[] canvases) { //Create the field's rectangle based on the current cell and requested padded var newRect = new PdfRectangle(rect.GetLeft(Padding), rect.GetBottom(Padding), rect.GetRight(Padding), rect.GetTop(Padding)); //Set the appearance's rectangle to the same as the box Field.Box = newRect.Rectangle; //Get the raw field var tf = this.Field.GetTextField(); //Change the field's rectangle tf.Put(PdfName.RECT, newRect); //Add the annotation to the writer Writer.AddAnnotation(tf); }