chore: fix stale 'optional extra' wording in comment

This commit is contained in:
Ray 2026-07-19 16:32:58 +08:00
parent 5fc1b81c62
commit dcf58f1f9c

View file

@ -19,9 +19,9 @@ class PdfParser:
model = kwargs.get("model")
images_dir = kwargs.get("images_dir")
# Images are extracted with PyMuPDF (optional extra); text stays with
# PyPDF2 below so the extracted text — and therefore the tree — matches
# the CLI / pre-SDK default.
# Images are extracted with PyMuPDF (optional); text stays with PyPDF2
# below so the extracted text — and therefore the tree — matches the
# CLI / pre-SDK default.
page_images = self._extract_images(path, images_dir) if images_dir else {}
reader = PyPDF2.PdfReader(str(path))