Hi Aspose Team
Thanks for all you efforts. I have attached the file as
requested. I have been able to add new controls to it in specific co-ordinates.
However when I try to move an existing control in this template (i.e.
TextFieldTitle) or a newly added control, it does not work. I am providing the
code below FYI. I have also tried it with all other version without success.
string
sourcePath = HttpContext.Current.Server.MapPath(ConfigurationManager.AppSettings["BookPDFtemplate"].ToString());
string destPath = HttpContext.Current.Server.MapPath(ConfigurationManager.AppSettings["BookPDFdestination"].ToString());
//create
instance of FormEditor
FormEditor editor = new
FormEditor(sourcePath, destPath);
//move field to new position
editor.MoveField("TextFieldTitle",
10, 10, 50, 50);
This does not work either:
//remove existing field from the PDF
editor.RemoveField("TextFieldTitle”);
editor.Save();
I look forward to hearing from you soon.
Kind regards
|
Ahsanul
Shah
Application Developer
|
|
55 Degrees North
|
|
Pilgrim Street
|
|
Newcastle upon Tyne
|
|
NE1 6BF
|
|
United Kingdom
|
|
|
|
|