I have a system that prepopulates PDF fields via XFDF.
THe XFDF code seems fine, but when I try to open it with the header()
in PHP, PDF fires an error.
If I ignore it and refresh the page, it works fine and poplulates the form correctly.
Below is the XFDF code as well as the header I am using...
Any idea why PDF doesnt display it right away?
<`?xml version="1.0" encoding="UTF-8" ?>
<`xfdf xmlns="http://ns.adobe.com/xfdf/" xml:space="preserve">
<'fields>
<`field name="user_name">
<`value>Some Name</value>
<'/field>
<`field name="course_name">
<`value>Some Course</value>
<`/field>
<`/fields>
<`f href="http://the_URL_to_the_PDF_that_needs_to_be_populated_with_the_XFDF info" />
<`/xfdf>
I am trying to open the above with the header command below..
header("Content-type: application/vnd.adobe.xfdf");