Пример #1
0
        public void addPage(PdfPage page)
        {
            kids.Add(page.Reference);
            Count++;

            page.Parent  = Reference;
        }
Пример #2
0
 public void addPage(PdfPage page)
 {
     pages.addPage(page);
 }
Пример #3
0
        public PdfPage CreatePage(int width, int height)
        {
            var content = MakeStream();

            var page = new PdfPage(++objectcounter, resources.Reference, content, width, height);
            trailer.Add(page);
            root.addPage(page);

            return page;
        }
Пример #4
0
        public PdfOutline MakeOutline(PdfOutline parent, string title, PdfPage page)
        {
            var target = string.Format(CultureInfo.InvariantCulture, "[{0} /XYZ null null 0]", page.Reference);

            var outline = new PdfOutline(++objectcounter, title, target);

            if (parent != null)
            {
                parent.AddItem(outline);
            }

            trailer.Add(outline);
            return outline;
        }
Пример #5
0
        public void PrintPage(Page page, PdfDocument pdf)
        {
            currentPage = pdf.CreatePage(page.Width, page.Height);

            foreach (var be in page.Elements)
            {
                PrintElement(be, pdf, currentPage.Content);
            }
        }