iTextSharp.text.pdf.PdfWriter.Add C# (CSharp) Méthode

Add() private méthode

private Add ( PdfPage page, PdfContents contents ) : PdfIndirectReference
page PdfPage
contents PdfContents
Résultat PdfIndirectReference
        internal virtual PdfIndirectReference Add(PdfPage page, PdfContents contents)
        {
            if (!open) {
                throw new PdfException(MessageLocalization.GetComposedMessage("the.document.is.not.open"));
            }
            PdfIndirectObject objecta;
            objecta = AddToBody(contents);
            page.Add(objecta.IndirectReference);
            if (group != null) {
                page.Put(PdfName.GROUP, group);
                group = null;
            }
            else if (rgbTransparencyBlending) {
                PdfDictionary pp = new PdfDictionary();
                pp.Put(PdfName.TYPE, PdfName.GROUP);
                pp.Put(PdfName.S, PdfName.TRANSPARENCY);
                pp.Put(PdfName.CS, PdfName.DEVICERGB);
                page.Put(PdfName.GROUP, pp);
            }
            root.AddPage(page);
            currentPageNumber++;
            return null;
        }

Same methods

PdfWriter::Add ( PdfICCBased icc ) : PdfIndirectReference
PdfWriter::Add ( PdfImage pdfImage, PdfIndirectReference fixedRef ) : PdfIndirectReference