//
        // 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
 /// <summary>
 /// Overrides the move to the next region - not complete
 /// </summary>
 /// <returns></returns>
 public override bool MoveToNextRegion(PDFUnit requiredHeight, PDFLayoutContext context)
 {
     if (this.ContentBlock.Position.OverflowAction == OverflowAction.NewPage)
     {
         PDFLayoutPage cont = this.Document.BeginNewContinuationPage();
         cont.InitPage(this.Size, this.ContentBlock.Position, this.ContentBlock.ColumnOptions, context);
         return(cont != null);
     }
     else
     {
         return(false);
     }
 }