public void setDictionary(int id, PdfObject value) {

    value.setID(id);

    switch (id) {
      case PdfDictionary.Encrypt:
        Encrypt = value;
        break;

      case PdfDictionary.Extends:
        Extends = value;
        break;

      case PdfDictionary.Info:
        Info = value;
        break;

      case PdfDictionary.Root:
        Root = value;
        break;

        //            case PdfDictionary.XObject:
        //            	XObject=value;
        //    		break;

      default:
        super.setDictionary(id, value);
    }
  }
  @Override
  public void setDictionary(final int id, final PdfObject value) {

    value.setID(id);

    switch (id) {
      case PdfDictionary.TR:
        TR = value;
        break;

      default:
        super.setDictionary(id, value);
    }
  }
示例#3
0
文件: MKObject.java 项目: srnsw/xena
  public void setDictionary(int id, PdfObject value) {

    value.setID(id);
    switch (id) {
      case PdfDictionary.I:
        I = value;
        break;
        //
        //            case PdfDictionary.XObject:
        //            	XObject=value;
        //    		break;

      default:
        super.setDictionary(id, value);
    }
  }