@@ -56,27 +56,27 @@ public virtual void ChoiceFieldsWithUnicodeTest() {
56
56
pdfDoc . AddNewPage ( ) ;
57
57
// 规
58
58
PdfFormField field = new ChoiceFormFieldBuilder ( pdfDoc , "combo1" ) . SetWidgetRectangle ( new Rectangle ( 36 , 666
59
- , 40 , 80 ) ) . SetOptions ( new String [ ] { "\u89c4 " , "\u89c9 " } ) . SetConformanceLevel ( null ) . CreateComboBox ( ) .
60
- SetValue ( "\u89c4 " ) ;
59
+ , 40 , 80 ) ) . SetOptions ( new String [ ] { "\u89c4 " , "\u89c9 " } ) . SetGenericConformanceLevel ( null ) . CreateComboBox
60
+ ( ) . SetValue ( "\u89c4 " ) ;
61
61
field . SetFont ( font ) ;
62
62
field . GetFirstFormAnnotation ( ) . SetBorderColor ( ColorConstants . BLACK ) ;
63
63
form . AddField ( field ) ;
64
64
// 觉
65
65
field = new ChoiceFormFieldBuilder ( pdfDoc , "combo2" ) . SetWidgetRectangle ( new Rectangle ( 136 , 666 , 40 , 80 ) ) . SetOptions
66
- ( new String [ ] { "\u89c4 " , "\u89c9 " } ) . SetConformanceLevel ( null ) . CreateComboBox ( ) ;
66
+ ( new String [ ] { "\u89c4 " , "\u89c9 " } ) . SetGenericConformanceLevel ( null ) . CreateComboBox ( ) ;
67
67
field . SetValue ( "\u89c4 " ) . SetFont ( font ) ;
68
68
field . SetValue ( "\u89c9 " ) ;
69
69
field . GetFirstFormAnnotation ( ) . SetBorderColor ( ColorConstants . BLACK ) ;
70
70
form . AddField ( field ) ;
71
71
// 规
72
72
field = new ChoiceFormFieldBuilder ( pdfDoc , "list1" ) . SetWidgetRectangle ( new Rectangle ( 236 , 666 , 50 , 80 ) ) . SetOptions
73
- ( new String [ ] { "\u89c4 " , "\u89c9 " } ) . SetConformanceLevel ( null ) . CreateList ( ) . SetValue ( "\u89c4 " ) ;
73
+ ( new String [ ] { "\u89c4 " , "\u89c9 " } ) . SetGenericConformanceLevel ( null ) . CreateList ( ) . SetValue ( "\u89c4 " ) ;
74
74
field . SetFont ( font ) ;
75
75
field . GetFirstFormAnnotation ( ) . SetBorderColor ( ColorConstants . BLACK ) ;
76
76
form . AddField ( field ) ;
77
77
// 觉
78
78
field = new ChoiceFormFieldBuilder ( pdfDoc , "list2" ) . SetWidgetRectangle ( new Rectangle ( 336 , 666 , 50 , 80 ) ) . SetOptions
79
- ( new String [ ] { "\u89c4 " , "\u89c9 " } ) . SetConformanceLevel ( null ) . CreateList ( ) ;
79
+ ( new String [ ] { "\u89c4 " , "\u89c9 " } ) . SetGenericConformanceLevel ( null ) . CreateList ( ) ;
80
80
field . SetValue ( "\u89c4 " ) . SetFont ( font ) ;
81
81
field . SetValue ( "\u89c9 " ) ;
82
82
field . GetFirstFormAnnotation ( ) . SetBorderColor ( ColorConstants . BLACK ) ;
@@ -146,7 +146,7 @@ public virtual void MultiSelectByValueTest() {
146
146
document . AddNewPage ( ) ;
147
147
PdfAcroForm form = PdfFormCreator . GetAcroForm ( document , true ) ;
148
148
PdfChoiceFormField choice = ( PdfChoiceFormField ) new ChoiceFormFieldBuilder ( document , "choice" ) . SetWidgetRectangle
149
- ( new Rectangle ( 336 , 666 , 50 , 80 ) ) . SetOptions ( new String [ ] { "one" , "two" , "three" , "four" } ) . SetConformanceLevel
149
+ ( new Rectangle ( 336 , 666 , 50 , 80 ) ) . SetOptions ( new String [ ] { "one" , "two" , "three" , "four" } ) . SetGenericConformanceLevel
150
150
( null ) . CreateList ( ) . SetValue ( "two" ) . SetFont ( null ) ;
151
151
choice . GetFirstFormAnnotation ( ) . SetBorderColor ( ColorConstants . BLACK ) ;
152
152
choice . SetMultiSelect ( true ) ;
0 commit comments