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

error in the output with a document in pdf #4

Open
fulgorit opened this issue Feb 8, 2017 · 7 comments
Open

error in the output with a document in pdf #4

fulgorit opened this issue Feb 8, 2017 · 7 comments
Assignees

Comments

@fulgorit
Copy link

fulgorit commented Feb 8, 2017

python pdf.py -i PDFs-for-test -o output.txt

Input folder: /home/masterli/PRJS/pythonResume2/linkedin-pdf-parsing/PDFs-for-test, output file: /home/masterli/PRJS/pythonResume2/linkedin-pdf-parsing/output.txt 
Traceback (most recent call last):
  File "pdf.py", line 306, in <module>
    main(args)
  File "pdf.py", line 254, in main
    surname = get_name(objs)[1].decode('utf8')
AttributeError: 'bool' object has no attribute 'decode'
@hellpanderrr hellpanderrr self-assigned this Feb 8, 2017
@hellpanderrr
Copy link
Owner

What OS, Python & Pdfminer do you use?

@fulgorit
Copy link
Author

fulgorit commented Feb 8, 2017 via email

@fulgorit
Copy link
Author

fulgorit commented Feb 9, 2017 via email

@hellpanderrr
Copy link
Owner

I tried to reproduce this on Win7 and Ubuntu -- can't get the error.
Could you try to look what is in the return of get_name(objs)?

@fulgorit
Copy link
Author

fulgorit commented Feb 9, 2017 via email

@abubakarmani1
Copy link

`
$ python3 pdf.py -i PDFs-for-test/ -o output.txt

File "pdf.py", line 110
elif not with_anno and type(char) <> pdfminer.layout.LTAnno:
^
SyntaxError: invalid syntax

`

code is not working. please provide more documentation... thank you

@hellpanderrr
Copy link
Owner

@abubakarmani1 python3 does not support <> operator, you need to replace it with !=

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

3 participants