Copy link to clipboard
Copied
Hi,
We are submitting the PDF into our server using the PDF submit form functionality. What will be the server response to the submit form?
We have tried sending the response in "application/vnd.fdf" but it is showing yellow trust security warning in Abode. When we tried plain string(text) as response then an alert is coming in abode without any text in it.
What response do we need to sent from Server to show success alert?
Copy link to clipboard
Copied
You need to return a FDF or XFDF structure. I don't have an example for a simple forms submission handy, but here is some PHP code that shows how information is exchanged: http://khkonsulting.com/2017/08/connect-database-pdf-form-time-without-soap/
Copy link to clipboard
Copied
With a little digging, I found an example. This again is from a PHP script, and just shows how to return a status message back to Acrobat after the form is received. Whatever is stored in the variable "$status" will get displayed in Acrobat. This can be an error message or a "We did receive your data. Thank you!".
echo("%FDF-1.2\n%âãÏÓ\n1 0 obj\n<<\n/FDF\n\t<<\n\t/Status(");
echo($status);
echo("\t)>>\n>>\nendobj\ntrailer\n<</Root 1 0 R>>\n%%EOF");
Copy link to clipboard
Copied
Thanks @Karl Heinz Kremer for the response. I am using C#. I have tried the above example
var response= @"%FDF-1.2
1 0 obj
<</FDF
<</Status (Submit was Successful)>>
>>
endobj
trailer << /Root 1 0 R >>
%%EOF";
var content = Encoding.ASCII.GetBytes(response);
var contentType = "application/vnd.fdf";
return File(content,contentType);
But in Abode we are getting this warning.
Is it possible to show the sucess message without this warning. If not what response do we need to sent from server so that abode will not any message after submit.