You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Original issue reported on code.google.com by
jameshig...@gmail.com
on 21 Dec 2014 at 7:34Attachments:
The text was updated successfully, but these errors were encountered: