Пример #1
0
 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++;
 }
Пример #2
0
        /// <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
        }
Пример #3
0
 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--;
 }
Пример #4
0
 public void RemovePage(PdfPage page)
 {
     PdfDocument.registeredObject.Remove(page);
     catalog.Pages.DeRegisterPage(page);
 }
Пример #5
0
        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;
        }