Handle Ink annots without an InkList but with an AP
According to the pdf spec, the AP entry should take
precedence over the InkList entry. Thus, it is safe
to render Ink annots with an AP entry but missing
an InkList entry. This fixes rendering of some
Onyx Generated files.
diff --git a/poppler/Annot.cc b/poppler/Annot.cc
index 8a0c261..18357a9 100644
--- a/poppler/Annot.cc
+++ b/poppler/Annot.cc
@@ -5833,8 +5833,14 @@
   } else {
     inkListLength = 0;
     inkList = nullptr;
-    error(errSyntaxError, -1, "Bad Annot Ink List");
-    ok = false;
+    obj1 = dict->lookup("AP");
+
+    // Although InkList is required, it should be ignored
+    // when there is an AP entry in the Annot.
+    if (!obj1.isDict()) {
+      error(errSyntaxError, -1, "Bad Annot Ink List");
+      ok = false;
+    }
   }
 
   obj1 = dict->lookup("BS");