Package nz.govt.natlib.adapter.pdf.dom

Examples of nz.govt.natlib.adapter.pdf.dom.ObjectNode


  private boolean hasUserKey() {
    return false;
  }

  public void decrypt(PDFNode value) {
    ObjectNode obj = value.getContainingObject();
    if (obj == null)
      return; // time to go back!
    int objId = obj.getId();
    int objVer = obj.getVersion();

    // take all the strings and decrypt them...
    if (value instanceof StringNode) {
      StringNode strNode = (StringNode) value;
      strNode.setValue(decryptString(strNode.getStringValue(), objId,
          objVer));
    }

    if (value instanceof ObjectNode) {
      ObjectNode o = (ObjectNode) value;
      decrypt(o.getValue());
    }

    if (value instanceof DictionaryNode) {
      DictionaryNode dict = (DictionaryNode) value;
      for (int i = 0; i < dict.size(); i++) {
View Full Code Here

TOP

Related Classes of nz.govt.natlib.adapter.pdf.dom.ObjectNode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.