gdelugre / origami

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

How to parse outline #78

Open pintergreg opened 3 years ago

pintergreg commented 3 years ago

Is it possible to parse the outline and get the destination page numbers?

What I want is a mutool show som.pdf outline like result, where I cann easily get the outline entry name and destination page number.

I saw an Outline and an OutlineItem class but I just don't understand how can I use them.

Thanks,