(first_page_text: str)
| 1968 | |
| 1969 | |
| 1970 | def 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 | |
| 1977 | def extract_local_pdf_hints(pdf_path: Path) -> dict[str, Any]: |
no test coverage detected