Dear ChadBoyer,
Thanks for considering Aspose.Pdf.Kit.
Honestly, there isn't any interface to meet your requirement. However, you can copy simple field through the following workaround:
string path = TestPath + @"gemini_6947\";
Form myForm = new Form(path + "FieldCopy.in.pdf");
String fieldName = "Button1";
//get field type
FieldType myType = myForm.GetFieldType(fieldName);
//get field value
String myValue = myForm.GetField(fieldName);
//get field appearance
FormFieldFacade myFacade = myForm.GetFieldFacade(fieldName);
myForm.Save();
FormEditor editor = new FormEditor(path + "Empty.pdf", path + "FieldCopy.out.pdf");
//create a new field using information above
editor.AddField(myType, fieldName, myValue, myFacade.PageNumber, myFacade.Box.Left, myFacade.Box.Bottom, myFacade.Box.Left + myFacade.Box.Width, myFacade.Box.Bottom + myFacade.Box.Height);
editor.Save();
However, this can only work with AcroForm Field. And information such as color, border ... will be lost. We are still working to develop new interface for this feature, but it won't be finished in a short time. Sorry for the inconvenience.
Best Regards.
Luke Fu
Product Developer
Aspose Changsha Team
About Us Contact Us