FDF > PDF - Content-type: application/vnd.fdf
| From: | Sam Smith | Date: | Wed, 27 Sep 2006 14:00:51 +0000 |
| Subject: | FDF > PDF - Content-type: application/vnd.fdf | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-242291@lists.php.net to get a copy of this message | ||
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>
] >>
trailer << /Root 1 0 Rendobj
%%EOF