//
        // support methods
        //

        #region protected virtual void BuildNewPage(PDFPageSize pgsize, PDFPositionOptions options ...)

        /// <summary>
        /// Creates a new page with the specified options and adds it to the current layout
        /// </summary>
        /// <param name="pgsize"></param>
        /// <param name="options"></param>
        /// <param name="alley"></param>
        /// <param name="colcount"></param>
        /// <param name="action"></param>
        protected virtual PDFLayoutPage BuildNewPage(PDFSize pgsize, PDFPositionOptions options, PDFColumnOptions colOpts, OverflowAction action)
        {
            PDFLayoutDocument doclayout = this.DocumentLayout;
            PDFLayoutPage     pg        = doclayout.BeginNewPage(this.Page, this, this.FullStyle, action);

            pg.InitPage(pgsize, options, colOpts, this.Context);

            return(pg);
        }
Exemple #2
0
        //
        // ctor(s)
        //

        #region public PDFLayoutPage(PDFLayoutDocument doc, PDFSize size, PDFPage page, PDFStyle full)

        /// <summary>
        /// Creates a new instance of the PDFLayoutPage.
        /// </summary>
        /// <param name="doc">The document layout this page belongs to</param>
        /// <param name="page">The page definition this layout is part of </param>
        /// <param name="full">The full style for the page</param>
        /// <remarks>The PDFLayout page has one block. The TopBlock.
        /// This contains all the regions and content for the page.</remarks>
        public PDFLayoutPage(PDFLayoutDocument doc, PageBase page, IPDFLayoutEngine engine, Style full, OverflowAction overflow)
            : base(doc, page, engine, full)
        {
            this.OverflowAction = overflow;
        }
 private void Doc_LayoutCompleted(object sender, PDFLayoutEventArgs args)
 {
     layout = args.Context.DocumentLayout;
 }