Exemple #1
0
        protected override void DoRegisterArtefacts(PDFLayoutContext context, PDFArtefactRegistrationSet set, Style fullstyle)
        {
            //var form = this.GetParentForm(context);
            PDFAcrobatFormFieldWidget entry = GetFieldEntry(context);

            context.DocumentLayout.RegisterCatalogEntry(context, PDFArtefactTypes.AcrobatForms, entry);
            this.Widget = entry;

            base.DoRegisterArtefacts(context, set, fullstyle);
        }
Exemple #2
0
        protected virtual PDFAcrobatFormFieldWidget GetFieldEntry(PDFContextBase context)
        {
            if (string.IsNullOrEmpty(this.Name))
            {
                if (string.IsNullOrEmpty(this.ID))
                {
                    this.ID = this.GetIncrementID(this.Type);
                }

                this.Name = this.UniqueID;
            }
            PDFAcrobatFormFieldWidget entry = new PDFAcrobatFormFieldWidget(this.Name, this.Value, this.DefaultValue, this.FieldType, this.Options);

            return(entry);
        }