/// <summary>
        /// Saves the PDF in memory.
        /// </summary>
        /// <returns></returns>
        public byte[] SaveInMemory()
        {
            IPdfGenerator generator = this.Generator();

            return(generator.SaveInMemory());
        }