You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improve comparison of num trees by comparing leftover keys if any and logging a warning to indicate specification nonconformance if hanging keys are found
Copy file name to clipboardExpand all lines: io/src/main/java/com/itextpdf/io/LogMessageConstant.java
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -84,6 +84,7 @@ public final class LogMessageConstant {
84
84
publicstaticfinalStringMAKE_COPY_OF_CATALOG_DICTIONARY_IS_FORBIDDEN = "Make copy of Catalog dictionary is forbidden.";
85
85
publicstaticfinalStringNAME_ALREADY_EXISTS_IN_THE_NAME_TREE = "Name \"{0}\" already exists in the name tree; old value will be replaced by the new one.";
86
86
publicstaticfinalStringNOT_TAGGED_PAGES_IN_TAGGED_DOCUMENT = "Not tagged pages are copied to the tagged document. Destination document now may contain not tagged content.";
87
+
publicstaticfinalStringNUM_TREE_SHALL_NOT_END_WITH_KEY = "Number tree ends with a key which is invalid according to the PDF specification.";
87
88
publicstaticfinalStringPDF_READER_CLOSING_FAILED = "PdfReader closing failed due to the error occurred!";
88
89
publicstaticfinalStringPDF_WRITER_CLOSING_FAILED = "PdfWriter closing failed due to the error occurred!";
89
90
publicstaticfinalStringPOPUP_ENTRY_IS_NOT_POPUP_ANNOTATION = "Popup entry in the markup annotations refers not to the annotation with Popup subtype.";
if (compareResult != null && outLeftover == null) {
1166
+
compareResult.addError(currentPath, "Number tree was expected to end with a key (although it is invalid according to the specification), but ended with a value");
0 commit comments