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

Recursive call in "parse_lt_objs" freezes the computer. #7

Open
MTKnife opened this issue Oct 25, 2017 · 0 comments
Open

Recursive call in "parse_lt_objs" freezes the computer. #7

MTKnife opened this issue Oct 25, 2017 · 0 comments

Comments

@MTKnife
Copy link

MTKnife commented Oct 25, 2017

There's a typo in "parse_lt_objs" when the function calls itself on an "LTFigure" object--in that recursive call, the argument "lt_obj.objs" found in the original code at http://denis.papathanasiou.org/posts/2010.08.04.post.html has been replaced by "lt_obj", which starts an ugly endless loop.

Unfortunately, in the current version of PDFMiner, the "LTFigure" class has no ".objs" attribute. The proper fix is would seem be to to call the "analyze" method on the "LTFigure" object, which constructs and returns the (internal) "_.objs" attribute, but I'm not positive it's working correctly--my documents may not have "LTFigures" that actually contain child objects.

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

No branches or pull requests

1 participant