MCPcopy Create free account
hub / github.com/VectifyAI/PageIndex / get_number_of_pages

Function get_number_of_pages

pageindex/utils.py:426–429  ·  view source on GitHub ↗
(pdf_path)

Source from the content-addressed store, hash-verified

424 return text
425
426def get_number_of_pages(pdf_path):
427 pdf_reader = PyPDF2.PdfReader(pdf_path)
428 num = len(pdf_reader.pages)
429 return num
430
431
432

Callers 1

_count_pagesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected