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

625 support identity cmap #626

Merged
merged 18 commits into from
Oct 13, 2021

Conversation

wind-chh
Copy link

@wind-chh wind-chh commented May 28, 2021

Pull request

This PR try to fix issue (#625 ). As PDFBox can handle this kind of pdf but pdfminer.six cannot. I add a similar process as PDFBox.

How Has This Been Tested?

I've added the failure pdf file under sample/contrib and a test case
in test_highlevel_extracttext.py testsuite. All unittests passed on my environment.

Checklist

  • I have added tests that prove my fix is effective or that my feature
    works
  • I have added docstrings to newly created methods and classes
  • 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

wind-chh and others added 4 commits February 26, 2021 13:57
Copy link
Member

@pietermarsman pietermarsman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Indeed fixes the issue with the mentioned PDF.

I've requested some changes, only esthetics.

I'm also interested in a MR with the changes in https://github.com/wind-chh/pdfminer.six/tree/598-support-cmap-type-6-10-12, are you also up for that?

pdfminer/cmapdb.py Outdated Show resolved Hide resolved
pdfminer/pdffont.py Outdated Show resolved Hide resolved
pdfminer/pdffont.py Outdated Show resolved Hide resolved
pdfminer/pdffont.py Outdated Show resolved Hide resolved
pdfminer/pdffont.py Outdated Show resolved Hide resolved
@pietermarsman
Copy link
Member

@wind-chh friendly reminder that there is some esthetics work left here.

@pietermarsman pietermarsman merged commit c883f5e into pdfminer:develop Oct 13, 2021
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