Specifications

Some of our headers seemed to cause problems with session control headers. There are a few
ways around this. We have found using GET parameters rather than POST or session variable
parameters avoids the problem.
Another solution is not to use an inline PDF but to get the user to download it instead as shown
in the Hello World PDFlib example.
You can also avoid problems if you are willing to write two slightly different versions of your
code, one for Netscape and one for Internet Explorer.
This issue is a known problem with the combination of Internet Explorer dynamically gener-
ated PDF files and the Acrobat Reader plug-in. Adobe has a Technical Note on the subject at
http://www.adobe.com/support/techdocs/3d76.htm
Although it talks about generating the PDF with Active Server Pages, the problem is the same.
Extending the Project
Adding some more realistic assessment tasks to the examination obviously could extend this
project, but it is really intended as an example of ways to deliver your own documents.
Customized documents that you might want to deliver online could include legal documents,
partially filled in order or application forms, or forms needed by government departments.
Further Reading
We suggest you visit Adobes site if you want to know more about the PDF (and FDF) formats.
http://www.adobe.com
Building Practical PHP and MySQL Projects
P
ART V
778
36 7842 CH30 3/6/01 3:40 PM Page 778