pdf表单发送FDF而不是PDF

时间:2015-03-28 16:14:04

标签: php pdf acrobat

更新  我发现如果我的计算机上的adobe reader打开它会发送PDF,但如果在网站的Chrome浏览器中打开,则相同的pdf格式会发送FDF 更新结束

我正在使用Acrobat XI Pro试用版

Adob​​e 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文档

1 个答案:

答案 0 :(得分:0)

一般来说,Adobe PDF Forms仅在Adobe Reader中提供完整功能。 Google Chrome pdf查看器仅发送FDF格式。 Firefox pdf查看器根本不允许表单编辑/发送。也许很明显,但我是php开发人员,从未使用过PDF Forms。