Hmmm, presumably plain ol' apache can serve up either PDF just fine? It works just fine non SSL? I was going to suggest sniffing the trafic to see what was different between your script and apache, but that's not going to help if it's encrypted.

Matthew