Skip to content

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

Merged
MartinThoma merged 1 commit intopy-pdf:mainfrom
ageitgey:ageitgey-docs-typo
Nov 14, 2023
Merged

DOC: Fix typo in example in extract-attachments.md#2285
MartinThoma merged 1 commit intopy-pdf:mainfrom
ageitgey:ageitgey-docs-typo

Conversation

@ageitgey
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

2 participants