Fix pdf console print