Creating a printable pdf from text

I have a specific area of text (like a recipe) that I would like to make printable in pdf or paper format. How do I make that happen through a button function?