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

Can't convert my pdf doc #7

Open
joncodo opened this issue Aug 12, 2016 · 2 comments
Open

Can't convert my pdf doc #7

joncodo opened this issue Aug 12, 2016 · 2 comments

Comments

@joncodo
Copy link

joncodo commented Aug 12, 2016

I need this for work and can help you with this repo if you like. :)

Parsing /Users/jodonnell/Desktop/MyFile.pdf
Traceback (most recent call last):
  File "main.py", line 30, in <module>
    main(sys.argv)
  File "main.py", line 15, in main
    parser = pdf2md.Parser(filename)
  File "/Users/jodonnell/Code/3rdParty/new/pdf2md/parser.py", line 14, in __init__
    self._document = self._read_file(filename)
  File "/Users/jodonnell/Code/3rdParty/new/pdf2md/parser.py", line 45, in _read_file
    document = PDFDocument(parser)
  File "/Library/Python/2.7/site-packages/pdfminer/pdfdocument.py", line 575, in __init__
    self._initialize_password(password)
  File "/Library/Python/2.7/site-packages/pdfminer/pdfdocument.py", line 598, in _initialize_password
    raise PDFEncryptionError('Unknown algorithm: param=%r' % param)
pdfminer.pdfdocument.PDFEncryptionError: Unknown algorithm: param={u'CF': {u'StdCF': {u'Length': 16, u'CFM': /V2, u'AuthEvent': /DocOpen}}, u'O': '\x0cr\x00O\xda\x01#0\xf0?<\x17B\xac \xaa\xb7=\x14\xa2\x91\xf5\xc5>(\xdc\xdc\x9b\xd6t\xb3\xb1', u'Filter': /Standard, u'P': -1324, u'Length': 128, u'R': 4, u'U': '$\xd8\x8d`\x1802\xc4\xc4\x19:bM\xf5/4\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', u'V': 4, u'StmF': /StdCF, u'StrF': /StdCF}
@joncodo
Copy link
Author

joncodo commented Aug 12, 2016

Unfortunately, I can't give you the file :(

@johnlinp
Copy link
Owner

Does your pdf file contains non-English characters? Like "你", "й", "선"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants