Exemplo n.º 1
0
        public virtual bool SetFieldAsTemplate(String field, PdfTemplate template)
        {
            PdfDictionary d = new PdfDictionary();

            if (template is PdfImportedPage)
            {
                d.Put(PdfName.N, template.IndirectReference);
            }
            else
            {
                PdfStream            str  = template.GetFormXObject(PdfStream.NO_COMPRESSION);
                PdfIndirectReference @ref = wrt.AddToBody(str).IndirectReference;
                d.Put(PdfName.N, @ref);
            }
            return(SetField(field, d));
        }