/// <summary>
 /// Moves a page after another
 /// </summary>
 public void InsertAfter(HtmlPdfPage page, HtmlPdfPage after)
 {
     this._Pages.Remove(page);
     this._Pages.Insert(
         Math.Min(this._Pages.IndexOf(after) + 1, this._Pages.Count),
         page);
 }
 /// <summary>
 /// Moves a page before another
 /// </summary>
 public void InsertBefore(HtmlPdfPage page, HtmlPdfPage before)
 {
     this._Pages.Remove(page);
     this._Pages.Insert(
         Math.Max(this._Pages.IndexOf(before), 0),
         page);
 }
        /// <summary>
        /// Appends and returns a new page for this document http://aspnettutorialonline.blogspot.com/
        /// </summary>
        public HtmlPdfPage AddPage()
        {
            HtmlPdfPage page = new HtmlPdfPage();

            this._Pages.Add(page);
            return(page);
        }
 /// <summary>
 /// Removes the page from the document http://aspnettutorialonline.blogspot.com/
 /// </summary>
 public void RemovePage(HtmlPdfPage page)
 {
     this._Pages.Remove(page);
 }