Hmm...one way could be to assign a state variable to the url. For example state=1, so your full url would be index.htm?state=1. This would be passed to your php script, and state=1 would represent xyz.pdf.
if(state==1)
{
$myFile="xyz.pdf"
}
Hope this helps.