public PDFSecureWrite14Factory(PDFEncryter enc) : base() { if (null == enc) { throw new ArgumentNullException(nameof(enc)); } this._enc = enc; }
/// <summary> /// Creates a new PDFSecureWriter14 that will write to the provded stream and encrypt output using the PDFEncrypter (cannot be null). /// </summary> /// <param name="stream">The stream to ultimately write the data to.</param> /// <param name="generation">The current generation of the PDF docucment.</param> /// <param name="log">The log to write messages to.</param> /// <param name="security">The PDFEncrypter to use.</param> internal PDFSecureWriter14(Stream stream, int generation, PDFTraceLog log, Version vers, PDFEncryter security) : base(stream, generation, log, vers) { if (null == security) { throw new ArgumentNullException("security"); } _security = security; _encrypters = new Stack <PDFObjectEncryptionStream>(); }
// // .ctor // #region internal PDFSecureWriter14(Stream stream, PDFTraceLog log, PDFEncryter security) /// <summary> /// Creates a new PDFSecureWriter14 that will write to the provded stream and encrypt output using the PDFEncrypter (cannot be null). /// </summary> /// <param name="stream">The stream to ultimately write the data to.</param> /// <param name="log">The log to write messages to.</param> /// <param name="security">The PDFEncrypter to use.</param> internal PDFSecureWriter14(Stream stream, PDFTraceLog log, PDFPerformanceMonitor monitor, PDFEncryter security) : base(stream, log) { if (null == security) { throw new ArgumentNullException("security"); } _security = security; _monitor = monitor; _encrypters = new Stack <PDFObjectEncryptionStream>(); }