The source text data could come in a portable document format (.pdf). Scientific research papers usually comes in PDF format. If you want to perform text mining, then you need to import the text from the PDF file into the R environment before doing any processing. In this recipe, you will import text data from a PDF file.