docs: protected boolean matches(PDF pdf) {
          try (InputStream inStream = pdf.openStream()) {
              final PDDocument doc = PDDocument.load(inStream);
              return matchesPDF(doc);
          } catch (IOException e) {
              LOG.debug("Could not load PDF document", e);
              return false;
          }
      }