コード例 #1
0
        /// <summary>
        ///     Format the PageSequence. The PageSequence formats Pages and adds
        ///     them to the AreaTree, which subsequently calls the StreamRenderer
        ///     instance (this) again to render the page.  At this time the page
        ///     might be printed or it might be queued. A page might not be
        ///     renderable immediately if the IDReferences are not all valid. In
        ///     this case we defer the rendering until they are all valid.
        /// </summary>
        /// <param name="pageSequence"></param>
        public void Render(PageSequence pageSequence)
        {
            AreaTree a = new AreaTree(this);

            a.setFontInfo(fontInfo);

            pageSequence.Format(a);

            this.results.HaveFormattedPageSequence(pageSequence);

            FonetDriver.ActiveDriver.FireFonetInfo(
                "Last page-sequence produced " + pageSequence.PageCount + " page(s).");
        }
コード例 #2
0
        /// <summary>
        ///     Format the PageSequence. The PageSequence formats Pages and adds
        ///     them to the AreaTree, which subsequently calls the StreamRenderer
        ///     instance (this) again to render the page.  At this time the page
        ///     might be printed or it might be queued. A page might not be
        ///     renderable immediately if the IDReferences are not all valid. In
        ///     this case we defer the rendering until they are all valid.
        /// </summary>
        /// <param name="pageSequence"></param>
        public void Render(PageSequence pageSequence)
        {
            AreaTree a = new AreaTree(this);

            a.setFontInfo(fontInfo);

            var sw = System.Diagnostics.Stopwatch.StartNew();

            pageSequence.Format(a);

            FonetDriver.ActiveDriver.FireFonetInfo(string.Format("Rendered Page Sequence Output in [{0}] seconds.", sw.Elapsed.TotalSeconds));


            this.results.HaveFormattedPageSequence(pageSequence);

            FonetDriver.ActiveDriver.FireFonetInfo(
                "Last page-sequence produced " + pageSequence.PageCount + " page(s).");
        }
コード例 #3
0
ファイル: StreamRenderer.cs プロジェクト: nholik/Fo.Net
        /// <summary>
        ///     Format the PageSequence. The PageSequence formats Pages and adds 
        ///     them to the AreaTree, which subsequently calls the StreamRenderer
        ///     instance (this) again to render the page.  At this time the page 
        ///     might be printed or it might be queued. A page might not be 
        ///     renderable immediately if the IDReferences are not all valid. In 
        ///     this case we defer the rendering until they are all valid.
        /// </summary>
        /// <param name="pageSequence"></param>
        public void Render(PageSequence pageSequence)
        {
            AreaTree a = new AreaTree(this);
            a.setFontInfo(fontInfo);

            pageSequence.Format(a);

            this.results.HaveFormattedPageSequence(pageSequence);

            FonetDriver.ActiveDriver.FireFonetInfo(
                "Last page-sequence produced " + pageSequence.PageCount + " page(s).");
        }