public HPdfEncoder(IntPtr hencoder) { if (hencoder == IntPtr.Zero) { throw new Exception("cannot create HPdfEncoder object."); } this.hencoder = hencoder; }