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

Unable to process signed document from Adobe Echosign #28

Open
GoogleCodeExporter opened this issue Sep 18, 2015 · 0 comments
Open

Unable to process signed document from Adobe Echosign #28

GoogleCodeExporter opened this issue Sep 18, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?

See Attached file for test file.

$ pdfsh
Welcome to the PDF shell (Origami release 1.2.6) [OpenSSL: yes, JavaScript: no]

>>> PDF.read('Downloads/HWS-POA.pdf')
[info ] ...Reading header...
[info ] ...Parsing revision 1...
[info ] ...Parsing xref table...
[info ] ...Parsing trailer...
[info ] ...Propagating types...
[info ] Warning: This document contains encrypted data!
ArgumentError: data must not be empty
    from /Library/Ruby/Gems/2.0.0/gems/origami-1.2.7/lib/origami/encryption.rb:789:in `update'
    from /Library/Ruby/Gems/2.0.0/gems/origami-1.2.7/lib/origami/encryption.rb:789:in `decrypt'
    from /Library/Ruby/Gems/2.0.0/gems/origami-1.2.7/lib/origami/encryption.rb:716:in `decrypt'
    from /Library/Ruby/Gems/2.0.0/gems/origami-1.2.7/lib/origami/encryption.rb:485:in `decrypt!'
    from /Library/Ruby/Gems/2.0.0/gems/origami-1.2.7/lib/origami/encryption.rb:176:in `block (2 levels) in decrypt'
    from /Library/Ruby/Gems/2.0.0/gems/origami-1.2.7/lib/origami/encryption.rb:161:in `each'
    from /Library/Ruby/Gems/2.0.0/gems/origami-1.2.7/lib/origami/encryption.rb:161:in `block in decrypt'
    from /Library/Ruby/Gems/2.0.0/gems/origami-1.2.7/lib/origami/encryption.rb:154:in `each'
    from /Library/Ruby/Gems/2.0.0/gems/origami-1.2.7/lib/origami/encryption.rb:154:in `decrypt'
    from /Library/Ruby/Gems/2.0.0/gems/origami-1.2.7/lib/origami/parsers/pdf.rb:92:in `parse_finalize'
    from /Library/Ruby/Gems/2.0.0/gems/origami-1.2.7/lib/origami/parsers/pdf/linear.rb:79:in `parse'
    from /Library/Ruby/Gems/2.0.0/gems/origami-1.2.7/lib/origami/pdf.rb:123:in `read'
    from (irb):1
    from /Library/Ruby/Gems/2.0.0/gems/origami-1.2.7/bin/pdfsh:12:in `<top (required)>'
    from /usr/bin/pdfsh:23:in `load'
    from /usr/bin/pdfsh:23:in `<main>'

What is the expected output? What do you see instead?

I'm able to open the file 

What version of the product are you using? On what operating system?

OS X Yosemite
Origami 1.2.7
Ruby 2.0.0p481


Original issue reported on code.google.com by jameshig...@gmail.com on 21 Dec 2014 at 7:34

Attachments:

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

1 participant