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

Fix for when 'trailer' is indented #513

Merged
merged 3 commits into from
Oct 24, 2020
Merged

Conversation

jstockwin
Copy link
Member

@jstockwin jstockwin commented Sep 29, 2020

Pull request

Thanks for improving pdfminer.six! Please include the following information to
help us discuss and merge this PR:

Fix a bug where trailer being indented caused a bug. Thanks to @pietermarsman for suggesting the fix.

Closes #214

How Has This Been Tested?

There is an example script and PDF in #214.

Checklist

  • I have added tests that prove my fix is effective or that my feature
    works (N/A -> we don't really want to add this PDF to our test suite, correct?)
  • I have added docstrings to newly created methods and classes (N/A)
  • I have optimized the code at least one time after creating the initial
    version
  • I have updated the README.md or I am verified that this
    is not necessary
  • I have updated the readthedocs documentation or I
    verified that this is not necessary
  • I have added a consice human-readable description of the change to
    CHANGELOG.md

pdfminer/pdfdocument.py Outdated Show resolved Hide resolved
pdfminer/pdfdocument.py Outdated Show resolved Hide resolved
@jstockwin
Copy link
Member Author

@pietermarsman I just pushed a new commit addressing your code review 👍

@pietermarsman pietermarsman merged commit ec223d1 into pdfminer:develop Oct 24, 2020
@pietermarsman
Copy link
Member

Oops! Merged this while it was broken...

pietermarsman added a commit that referenced this pull request Oct 25, 2020
pietermarsman added a commit that referenced this pull request Oct 25, 2020
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.

multiple xrefs in pdf cause page extraction return only the first page
2 participants