private void updateCurrentPage()
        {
            bool emergedNewPage = false;

            pdfDocument.ProcessParagraphs();

            if (pdfPage == null)
            {
                pdfPage        = pdfDocument.Pages.Add();
                emergedNewPage = true;
            }
            else if (pdfDocument.Pages.Count > currentPageNum)
            {
                pdfPage        = pdfDocument.Pages[pdfDocument.Pages.Count];
                emergedNewPage = true;
            }

            if (emergedNewPage)
            {
                currentPageNum = pdfDocument.Pages.Count;

                pdfPage.PageInfo.DefaultTextState = pageTextState;
                pdfPage.PageInfo.Margin           = pageMargin;
                pdfPage.Background = pageBackground;
            }
        }