FDF > PDF - Content-type: application/vnd.fdf




When loaded into a browser that can display PDF files (Win IE and Firefox, Mac Safari) the FDF file (snip below) should open linked PDF and populated it with the data from the FDF file.

It works fine when the FDF file is loaded from within the browser with "Open File" (or simply double-clicked from the desktop).

It works fine in Win IE (because IE doesn't play by the rules).

I just don't understand the header thing, the "Content-type" deal.

Why is the FDF file loaded as plain text when loaded via a URL?

<http://arraymedia.com/csz/pdf/ud/JO_SAFARI_FORM_AND_DATA/>


PHP creates the .fdf file:

Content-type: application/vnd.fdf
%FDF-1.2
%‚„œ”
1 0 obj
<<
/FDF << /Fields [ << /T (pg1_familyname1) /V (SMITH)>>

.... dozens of other fields...

<< /T (pdf_ExtraPages) /V (Additional other names from page 1 part 1 section C\rOTHER4 OTHER4 OTHER4 OTHER5 OTHER5 OTHER5)>> ]
/F (http://www.citizenshipzip.local/pdf/ud/SAM_SMITH_FORM_AND_DATA/ sys/naturalization.pdf) /ID [ <138ff91476c2ae9c9f192e15ac50d7bf>
] >>
>>
endobj
trailer
<<
/Root 1 0 R

>>
%%EOF.



Relevant Pages

  • Re: fdf/pdf
    ... Enter information by form on a page via a browser. ... Output this back via browser by means of PDF. ... > form fields in the PDF using Acrobat, and export an FDF file. ... > I'm sure this is very simple, but I am very new to PHP, so go figure. ...
    (alt.php)
  • Re: I have an FDF file saved to my disk and would like to use it with a web-based PDF with FILLA
    ... > to tell the PDF file I have an associated FDF ready to provide the ... I'd like to make the data in the FDF file populate the ... FDF file with your properly configured browser. ... there are commercial tools to do what you wish. ...
    (comp.text.pdf)