public override void Write(Factory factory)
 {
     base.Write(factory);
 }
        /// <summary>
        /// Writes a single PDF into a Memory Stream
        /// </summary>
        //public virtual void Write(IApplication application, Factory factory)
        //{
        //    root = factory.root;
        //    content = factory.content;
        //    writer = factory.writer;
        //    helper = factory.helper;
        //    under = factory.under;
        //    document = factory.document;
        //    Create(writer);
        //    // Creates all the content and tags
        //}

        /// <summary>
        /// Writes complex PDF into a Memory Stream
        /// </summary>
        public virtual void Write(Factory factory)
        {
            root = factory.root;
            content = factory.content;
            writer = factory.writer;
            helper = factory.helper;
            under = factory.under;
            document = factory.document;
            Strategy = factory.Strategy;
            Create(writer);
            // Creates all the content and tags
        }