File tree Expand file tree Collapse file tree 5 files changed +7
-3
lines changed
itext.tests/itext.forms.tests/itext/forms Expand file tree Collapse file tree 5 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ source product.
41414242*/
4343using System ;
44+ using iText . Forms . Exceptions ;
4445using iText . Kernel . Pdf ;
4546using iText . Kernel . Utils ;
4647using iText . Test ;
@@ -71,7 +72,7 @@ public virtual void FlatteningFormFieldNoSubtypeInAPTest() {
7172 }
7273
7374 [ NUnit . Framework . Test ]
74- [ LogMessage ( iText . IO . Logs . IoLogMessageConstant . N_ENTRY_IS_REQUIRED_FOR_APPEARANCE_DICTIONARY ) ]
75+ [ LogMessage ( FormsExceptionMessageConstant . N_ENTRY_IS_REQUIRED_FOR_APPEARANCE_DICTIONARY ) ]
7576 public virtual void FormFlatteningTestWithoutNEntry ( ) {
7677 String filename = "formFlatteningTestWithoutNEntry" ;
7778 String src = sourceFolder + filename + ".pdf" ;
Original file line number Diff line number Diff line change @@ -833,7 +833,7 @@ public virtual void FlattenFields() {
833833 }
834834 }
835835 else {
836- LOGGER . LogError ( iText . IO . Logs . IoLogMessageConstant . N_ENTRY_IS_REQUIRED_FOR_APPEARANCE_DICTIONARY ) ;
836+ LOGGER . LogWarning ( FormsExceptionMessageConstant . N_ENTRY_IS_REQUIRED_FOR_APPEARANCE_DICTIONARY ) ;
837837 }
838838 PdfArray fFields = GetFields ( ) ;
839839 fFields . Remove ( fieldObject ) ;
Original file line number Diff line number Diff line change @@ -35,6 +35,8 @@ public sealed class FormsExceptionMessageConstant {
3535 public const String WRONG_FORM_FIELD_ADD_ANNOTATION_TO_THE_FIELD = "Wrong form field. Add annotation to the "
3636 + "field." ;
3737
38+ public const String N_ENTRY_IS_REQUIRED_FOR_APPEARANCE_DICTIONARY = "\\ N entry is required to be present in an appearance dictionary." ;
39+
3840 private FormsExceptionMessageConstant ( ) {
3941 }
4042 }
Original file line number Diff line number Diff line change @@ -281,6 +281,7 @@ public const String IMAGE_HAS_INCORRECT_OR_UNSUPPORTED_BASE_COLOR_SPACE_IN_INDEX
281281
282282 public const String NUM_TREE_SHALL_NOT_END_WITH_KEY = "Number tree ends with a key which is invalid according to the PDF specification." ;
283283
284+ [ System . ObsoleteAttribute ( @"Unused constant. Will be removed in 7.3" ) ]
284285 public const String N_ENTRY_IS_REQUIRED_FOR_APPEARANCE_DICTIONARY = "\\ N entry is required to be present in an appearance dictionary." ;
285286
286287 public const String OCCUPIED_AREA_HAS_NOT_BEEN_INITIALIZED = "Occupied area has not been initialized. {0}" ;
Original file line number Diff line number Diff line change 1- 8db4d3e33a42e02dd631c24a1d7c216ef46ecf53
1+ b4062039402771737a56bddbc7f33a9bbfd177d6
You can’t perform that action at this time.
0 commit comments