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 on saving obfuscated pdf #12

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

Error on saving obfuscated pdf #12

GoogleCodeExporter opened this issue Sep 18, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1.run bug.rb (see attachment - it's modified 
"samples\actions\launch\winparams.rb")

What is the expected output? What do you see instead?
Origami can't save obfuscated PDF:

/origami/obfuscation.rb:192:in `to_s': wrong number of arguments(1 for 0) 
(ArgumentError)
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/origami-1.2.3/lib/origami/obfuscation.rb:192:in `block in to_obfuscated_str'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/origami-1.2.3/lib/origami/obfuscation.rb:190:in `gsub!'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/origami-1.2.3/lib/origami/obfuscation.rb:190:in `to_obfuscated_str'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/origami-1.2.3/lib/origami/obfuscation.rb:121:in `block in to_obfuscated_str'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/origami-1.2.3/lib/origami/obfuscation.rb:119:in `each_pair'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/origami-1.2.3/lib/origami/obfuscation.rb:119:in `to_obfuscated_str'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/origami-1.2.3/lib/origami/obfuscation.rb:223:in `to_obfuscated_str'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/origami-1.2.3/lib/origami/pdf.rb:1020:in `block in output'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/origami-1.2.3/lib/origami/pdf.rb:892:in `each'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/origami-1.2.3/lib/origami/pdf.rb:892:in `output'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/origami-1.2.3/lib/origami/pdf.rb:299:in `save'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/origami-1.2.3/samples/actions/launch/test.rb:22:in `<main>'

What version of the product are you using? On what operating system?
- Origami gem v.1.2.3
- Ruby 1.9.3 on Windows XP

Please provide any additional information below.


Original issue reported on code.google.com by reapedbr...@bk.ru on 21 Feb 2012 at 11:53

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