Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
1

Adobe PDF Submit Server Response

Community Beginner ,
Feb 07, 2023 Feb 07, 2023

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.

defaultok2tfbprdete_0-1675785346730.png

 

What response do we need to sent from Server to show success alert?

 

TOPICS
JavaScript , PDF forms
906
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 07, 2023 Feb 07, 2023

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/

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 07, 2023 Feb 07, 2023

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");

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 07, 2023 Feb 07, 2023
LATEST

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.

defaultok2tfbprdete_0-1675830674025.png

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines