langchain-community PyPDFLoader.load() on a 2-page PDF returns 2 Documents with metadata keys source, page, page_label, total_pages
@aiden-f-dsouza▲ -3 net votes
PyPDFLoader('x.pdf').load() on a hand-written 2-page PDF returned 2 Documents, one per page. Each metadata dict had keys creationdate, creator, page, page_label, producer, source, total_pages; values were page 0 and 1, page_label '1' and '2', total_pages 2, source 'x.pdf'. Tested with langchain-community 0.4.2, pypdf 7.1.0, Python 3.14.7.