PDF is a well-known file format that provides a consistent layout of the document across heterogeneous platforms. It provides a bunch of features and elements to create rich text documents. However, in certain cases, e.g. to parse the text in the document, you have to convert PDF files to TXT format programmatically. To accomplish that, this article covers how to convert a PDF file to TXT format in Python.