# ducpy.search.search_pdf

PDF text extraction for search.

## Attributes

| [`logger`](#ducpy.search.search_pdf.logger)   |    |
|-----------------------------------------------------------|----|

## Functions

| [`_compress_whitespace`](#ducpy.search.search_pdf._compress_whitespace)(value) → str                                                                             |    |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------|----|
| [`extract_pdf_text_for_search`](#ducpy.search.search_pdf.extract_pdf_text_for_search)(pdf_bytes, \*, ocr_language) → tuple[str, tuple[tuple[int, int, int], ...], bool] |    |

## Module Contents

### ducpy.search.search_pdf.logger

### ducpy.search.search_pdf.\_compress_whitespace(value: str | None) → str

### ducpy.search.search_pdf.extract_pdf_text_for_search(pdf_bytes: bytes, , ocr_language: str) → tuple[str, tuple[tuple[int, int, int], ...], bool]
