pdf() and message()