Skip to content

Conversation

@andersonhc
Copy link
Collaborator

This PR refactors image info storage to use dataclasses with clearer field names, improving readability and maintainability while enabling stronger typing and reducing the need for type asserts/ignores.

For backward compatibility, the public FPDF.image() API now converts the returned image info back to the legacy dict format with historical keys.

Checklist:

  • In case of a new feature, docstrings have been added, with also some documentation in the docs/ folder

  • A mention of the change is present in CHANGELOG.md

  • This PR is ready to be merged

By submitting this pull request, I confirm that my contribution is made under the terms of the GNU LGPL 3.0 license.

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.

2 participants