php - pdf form sends FDF instead of PDF -
update discovered sends pdf if opened adobe reader @ computer, same pdf form sends fdf if opened in chrome browser @ website update end
i using acrobat xi pro trial version
adobe acrobat offer forms in pdf documents, forms can submitted server
submit button settings http://gyazo.com/0ff0dc17210f39f062a131c85265406c
my server code
<?php ob_start(); $file = file_get_contents("php://input"); //gets binary pdf data $time = microtime(true); $newfile = "./customers/" . $time . ".pdf"; //names file based on time microsecond nothing gets overwritten. $worked = file_put_contents($newfile, $file); //creates file ob_end_clean(); ?>
and getting fdf data instead, not pdf document
in general adobe pdf forms full functionality available in adobe reader. google chrome pdf viewer sends fdf format. firefox pdf viewer don't allow form editing/sending @ all. maybe obvious, php developer , never worked pdf forms.
Comments
Post a Comment