Text can be easily extracted from a PDF using the `langchain` and `unstructured` python libraries. The `unstructured` library provides a  simple interface to extract from numerous filetypes including images, PDFs, DOCX, and PPTX files. 

Example code for reading in a PDF using these libraries is given below: 
```python
from langchain.document_loaders import UnstructuredPDFLoader

loader = UnstructuredPDFLoader("example_data/layout-parser-paper.pdf")
data = loader.load()
```
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence