Fixed pdf download