Skip to content

feat: add on_image_error callback for resilient image parsing#18

Open
ayush52056 wants to merge 1 commit intopymupdf:mainfrom
ayush52056:feat/on-image-error-callback
Open

feat: add on_image_error callback for resilient image parsing#18
ayush52056 wants to merge 1 commit intopymupdf:mainfrom
ayush52056:feat/on-image-error-callback

Conversation

@ayush52056
Copy link
Copy Markdown

  • Introduced on_image_error parameter to PyMuPDF4LLMLoader and Parser.
  • Allows handling of image parsing exceptions (e.g., token expiration).
  • Updated docstrings and README with usage examples for token refresh.
  • Wrapped image parsing logic in try-except to support user-defined recovery.

- Introduced `on_image_error` parameter to PyMuPDF4LLMLoader and Parser.
- Allows handling of image parsing exceptions (e.g., token expiration).
- Updated docstrings and README with usage examples for token refresh.
- Wrapped image parsing logic in try-except to support user-defined recovery.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant