Hi Team,
I have added an submit button to an existing PDF with an submit url. Then I’m saving the PDF.
The code snippet is in c# and it is as follows.
FormEditor form = new FormEditor();
form.BindPdf(HostingEnvironment.MapPath(@"~\Pdf\64-8 Blank.pdf"));
form.AddSubmitBtn("submitbutton", 2, "Submit","http://localhost:15673/HMRC/SavePdf", 1, 50, 100, 75);
form.Save(HostingEnvironment.MapPath(@"~\Pdf\Out.pdf"));
But after opening the saved file when I click the submit button it is showing
“This document is trying to connect to :
file:///C|/app/AG/6’%C2…” (C:/app/AG is the local path of the saved file)
After click on Allow, it is showing “Error opening Url to submit this form”.
Please Note : the submit url is an working MVC controller action.