gdelugre / origami

Origami is a pure Ruby library to parse, modify and generate PDF documents.
GNU Lesser General Public License v3.0
325 stars 110 forks source link

Example of using PPKLite? #48

Closed matthiasballreich closed 6 years ago

matthiasballreich commented 6 years ago

Could you provide some example code of how to use PPKLite correctly?

My Script looks the following:

require 'origami'
include Origami

pdf = PPKLite.read "C:\\Users\\Name\\addressbook.acrodata"
puts pdf.Catalog
puts pdf.show_entries

But i got the following error: undefined method `show_entries' for # (NoMethodError)

So it would be belpful to get some example code of how to use it correctly. Thanks a lot!

------ EDIT ------- Sorry, i solved it. I used an old rubydoc.info site, which uses version 1. With the right one, now i can work.