Skip to content

Commit cbc0ff8

Browse files
OCR PDF: Fix misleading method descriptions
OCR PDF does not extract text, but it makes subsequent text extraction possible.
1 parent 47953f5 commit cbc0ff8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/pdfrest/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2271,7 +2271,7 @@ def ocr_pdf(
22712271
extra_body: Body | None = None,
22722272
timeout: TimeoutTypes | None = None,
22732273
) -> PdfRestFileBasedResponse:
2274-
"""Perform OCR on a PDF to extract searchable text."""
2274+
"""Perform OCR on a PDF to make text searchable and extractable."""
22752275

22762276
payload: dict[str, Any] = {"files": file}
22772277
if pages is not None:
@@ -3270,7 +3270,7 @@ async def ocr_pdf(
32703270
extra_body: Body | None = None,
32713271
timeout: TimeoutTypes | None = None,
32723272
) -> PdfRestFileBasedResponse:
3273-
"""Perform OCR on a PDF to extract searchable text."""
3273+
"""Perform OCR on a PDF to make text searchable and extractable."""
32743274

32753275
payload: dict[str, Any] = {"files": file}
32763276
if pages is not None:

0 commit comments

Comments
 (0)