Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tika/pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def text_from_pdf_pages(filename):

# Read PDF file
data = parser.from_file(filename, xmlContent=True)
xhtml_data = BeautifulSoup(data['content'])
xhtml_data = BeautifulSoup(data['content'], features="html.parser")
for i, content in enumerate(xhtml_data.find_all('div', attrs={'class': 'page'})):
# Parse PDF data using TIKA (xml/html)
# It's faster and safer to create a new buffer than truncating it
Expand Down