Hi Monks!
I have a program that is generating a pdf file out of a fdf file, its driving me crazy here. It opens just fine and displays the PDF in Firefox but there is an issue if I try to open the same program in IE. May be some of you went by the same problem before where I ran out of options, is there a different header, am I calling the header wrong? Here is a code that you can try, look at it and please try to help on this:
#!/usr/bin/perl -w use strict; use CGI qw(:standard); my $q = new CGI; print $q->header("application/vnd.fdf"); #print "Content-type: application/vnd.fdf\n\n"; print <<RESPONSESTREAM; %FDF-1.2 1 0 obj << /FDF << /Fields [ << /T (name) /V (the name) >> << /T (address) /V (address) >> << /T (city) /V (city) >> << /T (email) /V (email) >> << /T (ph_number) /V (ph_number) >> << /T (date) /V (date) >> << /T (nick_name) /V (nick_name) >> << /T (sec_address) /V (sec_address) >> << /T (zip) /V (zip) >> ] /F (https://www.test.com/mytemplate.pdf) >> >> endobj trailer << /Root 1 0 R >> %%EOF RESPONSESTREAM exit;


Thanks for looking!

In reply to Open FDF file with Perl Help! by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.