Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOC: Fix typo in example in extract-attachments.md #2285

Merged
merged 1 commit into from Nov 14, 2023

Conversation

ageitgey
Copy link
Contributor

@ageitgey ageitgey commented Nov 7, 2023

The example code in extract-attachments.md iterates over a dictionary but doesn't properly call .items(), so the code fails as written. This adds the .items() call so the example works if cut and pasted into python.

@MartinThoma MartinThoma changed the title Docs: Fix typo in example in extract-attachments.md DOC: Fix typo in example in extract-attachments.md Nov 14, 2023
@MartinThoma MartinThoma merged commit 8d51903 into py-pdf:main Nov 14, 2023
@MartinThoma
Copy link
Member

Thank you!

If you want, I can add you to https://pypdf.readthedocs.io/en/latest/meta/CONTRIBUTORS.html

MartinThoma added a commit that referenced this pull request Nov 14, 2023
## What's new

### Bug Fixes (BUG)
-  Mediabox expansion size when applying non-right angle rotation (#2282) by @MrinalJain17

### Robustness (ROB)
-  MissingWidth is IndirectObject (#2288) by @MartinThoma
-  Initialize states array with an empty value (#2280) by @alexey-v-paramonov

### Documentation (DOC)
-  Typo in example in extract-attachments.md (#2285) by @ageitgey
-  Add Alexey Paramonov as a contributor for #2280 by @MartinThoma

### Maintenance (MAINT)
-  Update sample-files by @MartinThoma

[Full Changelog](3.17.0...3.17.1)
@ageitgey
Copy link
Contributor Author

@MartinThoma Thanks for the great library - it saved me a lot of work. No need to give me any credit just for fixing a DOC typo :)

@ageitgey ageitgey deleted the ageitgey-docs-typo branch November 14, 2023 10:14
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.

None yet

2 participants