示例#1
0
 /**
  * @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;
 }
示例#2
0
 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();
 }
示例#3
0
 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;
     }
 }
示例#4
0
 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);
 }
示例#5
0
 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);
 }
示例#6
0
 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();
 }
示例#7
0
 /**
  * @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;
 }
示例#8
0
 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);
 }
示例#9
0
 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);
 }
示例#10
0
 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;
 }