我发现如果通过adobe阅读器在我的计算机上打开,它会发送FDF,但如果在更新端网站的Chrome浏览器中打开,相同的PDF表单会发送FDF。
我正在使用Acrobat专业试用版
Acrobat提供pdf文档中的表单,这些表单可以提交给服务器。
提交按钮设置http://gyazo.com/0ff0dc17210f39f062a131c85265406c
我的服务器代码
<?php
ob_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 File
ob_end_clean();
?>我得到的是FDF数据,而不是PDF文档。
发布于 2015-03-30 16:46:42
一般来说,Adobe表单的全部功能只能在Adobe中使用。查看器只发送FDF格式。Firefox pdf查看器根本不允许编辑/发送表单。也许很明显,但我是php开发人员,从不使用PDF表单。
https://stackoverflow.com/questions/29319409
复制相似问题