MCPcopy Create free account
hub / github.com/917Dhj/DeepPaperNote / first_page_title_candidate

Function first_page_title_candidate

scripts/common.py:1970–1974  ·  view source on GitHub ↗
(first_page_text: str)

Source from the content-addressed store, hash-verified

1968
1969
1970def first_page_title_candidate(first_page_text: str) -> str:
1971 for raw_line in (first_page_text or "").splitlines():
1972 if is_plausible_pdf_title_line(raw_line):
1973 return clean_pdf_line(raw_line)
1974 return ""
1975
1976
1977def extract_local_pdf_hints(pdf_path: Path) -> dict[str, Any]:

Callers 1

extract_local_pdf_hintsFunction · 0.85

Calls 2

clean_pdf_lineFunction · 0.85

Tested by

no test coverage detected