Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12111

PDF form sends FDF instead of PDF

$
0
0

Update

I discovered it sends PDF if opened by adobe reader at my computer, but same PDF form sends FDF if opened in Chrome browser at website

Original Question

I am using Acrobat XI Pro trial version. Adobe Acrobat offer forms in PDF documents; those forms can be submitted to the server.

"Submit" button settings:

example

My server code:

<?phpob_start();$file = file_get_contents("php://input"); //Gets binary PDF Data$time = microtime(true);$newfile = "./customers/" . $time . ".pdf"; //Names file based on the time to the microsecond so nothing gets overwritten.$worked = file_put_contents($newfile, $file); //Creates Fileob_end_clean();?>

I am getting an FDF data instead, not a PDF document.


Viewing all articles
Browse latest Browse all 12111

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>