Example #1
0
        /// <summary>
        /// Adds the generated page footer to this page
        /// </summary>
        /// <param name="footer"></param>
        /// <param name="pageindex"></param>
        internal void AddGeneratedFooter(PDFPageFooter footer, int pageindex)
        {
            if (null == PageFooters)
            {
                PageFooters = new PageAdornmentHash();
            }

            PageFooters[pageindex] = footer;
            footer.Parent          = this;
        }
Example #2
0
        /// <summary>
        /// Attempts to retrieve a page footer for the specified page index. returning true if found
        /// </summary>
        /// <param name="pageindex"></param>
        /// <param name="footer"></param>
        /// <returns></returns>
        internal bool GetFooterForPage(int pageindex, out PDFPageFooter footer)
        {
            PageAdornment adorn;

            if (null != PageFooters && PageFooters.TryGetValue(pageindex, out adorn))
            {
                footer = (PDFPageFooter)adorn;
                return(true);
            }
            else
            {
                footer = null;
                return(false);
            }
        }