ENH: Add AnnotationBuilder.popup#1665
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #1665 +/- ##
==========================================
- Coverage 92.44% 92.38% -0.06%
==========================================
Files 34 34
Lines 6538 6553 +15
Branches 1296 1300 +4
==========================================
+ Hits 6044 6054 +10
- Misses 323 326 +3
- Partials 171 173 +2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
|
Looks good to me - should I merge it? (I want to release in the next ~30 minutes) :-) |
|
Ok, I think this one might need more discussion as there were a few changes besides the pure addition of the popup. I'll make todays release without it so that we have time to discuss this :-) |
Co-authored-by: Martin Thoma <info@martin-thoma.de>
Co-authored-by: Martin Thoma <info@martin-thoma.de>
| @staticmethod | ||
| def popup( | ||
| rect: Union[RectangleObject, Tuple[float, float, float, float]], | ||
| flags: int = 0, |
There was a problem hiding this comment.
It would be nice if we had an enum.IntFlag in constants.py for that. See the ObjectDeletionFlag in _writer.py and several examples in constants.py
oups... too old PR Co-authored-by: Martin Thoma <info@martin-thoma.de>
Co-authored-by: Martin Thoma <info@martin-thoma.de>
|
Very nice work 👍 Two cleanups would be nice (removing the outdated check related to pagenum + using an enum.IntFlag), but I could do myself both if you want. I want to include this in the coming release :-) |
Co-authored-by: Martin Thoma <info@martin-thoma.de>
|
@MartinThoma |
|
@pubpub-zz I think the PR is good to be merged :-) Two small comments that I could change myself + the IntEnum flag (which I could also add myself). Let me know if I should wait for you :-) |
Co-authored-by: Martin Thoma <info@martin-thoma.de>
Co-authored-by: Martin Thoma <info@martin-thoma.de>
|
@MartinThoma |
|
Thank you @pubpub-zz 🤗 The popup annotation will be part of |
Security (SEC): - Use Python's secrets module instead of random module (#1748) New Features (ENH): - Add AnnotationBuilder.highlight text markup annotation (#1740) - Add AnnotationBuilder.popup (#1665) - Add AnnotationBuilder.polyline annotation support (#1726) - Add clone_from parameter in PdfWriter constructor (#1703) Bug Fixes (BUG): - 'DictionaryObject' object has no attribute 'indirect_reference' (#1729) Robustness (ROB): - Handle params NullObject in decode_stream_data (#1738) Documentation (DOC): - Project scope (#1743) Maintenance (MAINT): - Add AnnotationFlag (#1746) - Add LazyDict.__str__ (#1727) [Full Changelog](3.6.0...3.7.0)
fixes #1195
refactored bas on previous proposal and get open workink
See #107