更新 我发现如果在我的计算机上用 adobe reader 打开它会发送 PDF,但如果在网站上的 Chrome 浏览器中打开,相同的 pdf 表单会发送 FDF 更新结束
我正在使用 Acrobat XI Pro 试用版
Adobe 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 文档
一般来说,Adobe PDF Forms 的全部功能仅在 Adobe Reader 中可用。 Google Chrome 的 PDF 查看器仅发送 FDF 格式。 Firefox 的 PDF 查看器根本不允许表单编辑/发送。也许很明显,但我是一名 PHP 开发人员,从未使用过 PDF 表单。