Skip to content

Commit 80b469e

Browse files
OCR PDF: Clarify function
OCR PDF does not extract text, but it makes subsequent text extraction possible.
1 parent bfa954f commit 80b469e

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:
@@ -3269,7 +3269,7 @@ async def ocr_pdf(
32693269
extra_body: Body | None = None,
32703270
timeout: TimeoutTypes | None = None,
32713271
) -> PdfRestFileBasedResponse:
3272-
"""Perform OCR on a PDF to extract searchable text."""
3272+
"""Perform OCR on a PDF to make text searchable and extractable."""
32733273

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

0 commit comments

Comments
 (0)