i am outputting a prefilled pdf form and sending a header to the browser to this effect:
header('Content-type: application/vnd.fdf');
echo create_fdf($form, $strings, $keys);
exit();
everything works beautifully except that on some machines the pdf form pops into a different window (i think this is what is happening) and leaves an empty window behind, thus there is a spare empty window floating around, which the client isn't going to like.
i've tried using javascript self.close at the bottom of the above code but that doesn't seem to work...
the bit that is foxing me is that it only does it on some machines, leading me to think that it might be a pdf/plugin/browser configuration issuer rather than the code itself.
any help on this would be massively appreciated.
best regards,
rob ganly
rob@ganly.co.uk