Example #1
0
 public PDFLayoutXObject(PDFLayoutLine parent, PDFLayoutRegion childContainer, PDFPositionOptions position, IPDFComponent owner)
     : base(parent, owner as IPDFComponent)
 {
     this._childContainer = childContainer;
     this._resources      = new PDFResourceList(this, false);
     this.SubType         = "Form";
     this.Matrix          = PDFTransformationMatrix.Identity();
     this._position       = position;
 }
Example #2
0
        //ctor



        #region protected PDFPage(PDFObjectType type)

        /// <summary>
        /// Protected constructor that can be called from subclasses to create a new PDF Page
        /// with a custom type
        /// </summary>
        /// <param name="type">The type name for the Page - usually 'Page'</param>
        protected PageBase(PDFObjectType type)
            : base(type)
        {
            this._resources = null;
        }
Example #3
0
        /// <summary>
        /// Virtual method that creates a new PDFResourceList for holding a pages resources.
        /// </summary>
        /// <returns>A new PDFResourceList</returns>
        protected virtual PDFResourceList DoInitResources()
        {
            PDFResourceList list = new PDFResourceList(this);

            return(list);
        }