/** * @param field * @param name * @param llx * @param lly * @param urx * @param ury */ public void SetSignatureParams(PdfFormField field, String name, float llx, float lly, float urx, float ury) { field.SetWidget(new Rectangle(llx, lly, urx, ury), PdfAnnotation.HIGHLIGHT_INVERT); field.FieldName = name; field.Flags = PdfAnnotation.FLAGS_PRINT; field.SetPage(); field.MKBorderColor = Color.BLACK; field.MKBackgroundColor = Color.WHITE; }
public void SetTextFieldParams(PdfFormField field, string text, string name, float llx, float lly, float urx, float ury) { field.SetWidget(new Rectangle(llx, lly, urx, ury), PdfAnnotation.HIGHLIGHT_INVERT); field.ValueAsString = text; field.DefaultValueAsString = text; field.FieldName = name; field.Flags = PdfAnnotation.FLAGS_PRINT; field.SetPage(); }
public void SetButtonParams(PdfFormField button, int characteristics, string name, string value) { button.Button = characteristics; button.Flags = PdfAnnotation.FLAGS_PRINT; button.SetPage(); button.FieldName = name; if (value != null) { button.ValueAsString = value; } }
public void SetChoiceParams(PdfFormField field, string name, string defaultValue, float llx, float lly, float urx, float ury) { field.SetWidget(new Rectangle(llx, lly, urx, ury), PdfAnnotation.HIGHLIGHT_INVERT); if (defaultValue != null) { field.ValueAsString = defaultValue; field.DefaultValueAsString = defaultValue; } field.FieldName = name; field.Flags = PdfAnnotation.FLAGS_PRINT; field.SetPage(); field.BorderStyle = new PdfBorderDictionary(2, PdfBorderDictionary.STYLE_SOLID); }
public void SetCheckBoxParams(PdfFormField field, string name, string value, bool status, float llx, float lly, float urx, float ury) { field.SetWidget(new Rectangle(llx, lly, urx, ury), PdfAnnotation.HIGHLIGHT_TOGGLE); field.FieldName = name; if (status) { field.ValueAsName = value; field.AppearanceState = value; } else { field.ValueAsName = "Off"; field.AppearanceState = "Off"; } field.Flags = PdfAnnotation.FLAGS_PRINT; field.SetPage(); field.BorderStyle = new PdfBorderDictionary(1, PdfBorderDictionary.STYLE_SOLID); }
public void SetButtonParams(PdfFormField button, int characteristics, string name, string value) { button.Button = characteristics; button.Flags = PdfAnnotation.FLAGS_PRINT; button.SetPage(); button.FieldName = name; if (value != null) button.ValueAsString = value; }