0

I have successfully created the xfdf output and correctly filled out the pdf.

Currently I am using the following code:

header ("Content-Type: application/vnd.adobe.xfdf");
print createXFDF($url, $values)

What I want to do is to save the pdf to the server rather than displaying it to the user.

Unfortunately pdftk is not an option.

I appreciate your assistance.

Thanks, David

  • you're telling it to output to the user. try `file_put_contents('whatever.pdf', createXFPF(...))` instead. and if that function does output anyways, then `ob_start(); $pdf = createXFDF(...); $pdf = ob_get_clean();` – Marc B Aug 13 '15 at 21:11
  • Thanks for the quick response Marc, the first approach simply saves the xfdf string to file. – David Mulroney Aug 13 '15 at 21:18

0 Answers0