public void RegisterPage(PdfPage page) { // Get the pages reference informaiton and write it to the kids array, then increment // the page count ((PdfArray)this[kids]).Add(page.IndirectReference); countObj.Value++; }
/// <summary> /// Constructor /// </summary> internal PdfGraphics(PdfPage page, PdfDocument doc) { this.page = page; stream = new PdfStream(); PdfDocument.RegisterForOutput(stream); page.RegisterContentStream(stream.IndirectReference); // Add the transform matrix for the graphics state }
public void DeRegisterPage(PdfPage page) { // Removes the pages reference information from the array and decreases the page count. ((PdfArray)this[kids]).Remove(page.IndirectReference); countObj.Value--; }
public void RemovePage(PdfPage page) { PdfDocument.registeredObject.Remove(page); catalog.Pages.DeRegisterPage(page); }
private PdfPage In_CreatePage(float height, float width, PdfPageOrientation orientation) { if(orientation == PdfPageOrientation.Landscape) { float temp = width; width = height; height = width; } PdfPage newPage = new PdfPage(catalog.Pages, this, height, width); PdfDocument.RegisterForOutput(newPage); catalog.Pages.RegisterPage(newPage); return newPage; }