public void addPage(PdfPage page) { kids.Add(page.Reference); Count++; page.Parent = Reference; }
public void addPage(PdfPage page) { pages.addPage(page); }
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; }
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; }
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); } }