Create a pdf from content