Added PDF rewrite rule - fixes #3