Fix problem with static directory in pdf download