Is it possible to extract tags and bookmarks using this gem?

57 views
Skip to first unread message

mikajerry...@gmail.com

unread,
Apr 17, 2016, 1:04:04 AM4/17/16
to PDF::Reader
Hello guys,

I need to extract tags and bookmarks from some pdf files. Can I use this gem for it? 
Let me know

Thank you,
Mika

James Healy

unread,
Apr 17, 2016, 1:08:46 AM4/17/16
to pdf-r...@googlegroups.com
It is, but there isn't a nice API for them. If a PDF has bookmarks,
they're document-level (not page-level) metadata, so you should be
able to see them like this:

PDF::Reader.open("filename.pdf") do |reader|
puts reader.metadata.inspect
end

James
> --
> You received this message because you are subscribed to the Google Groups
> "PDF::Reader" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to pdf-reader+...@googlegroups.com.
> To post to this group, send email to pdf-r...@googlegroups.com.
> Visit this group at https://groups.google.com/group/pdf-reader.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages