Writing some PDF content to a file