J-F-Liu / lopdf

A Rust library for PDF document manipulation.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FEATURE REQUEST: exposing `entry` and other methods to `Dictionary`

jeertmans opened this issue · comments

Hello,

First, many thanks for this great work!

I wrote a small project, rpdf, that uses your crate to deal with PDFs, and I felt like it had a few limitations.

The main one it that Dictionary only implements a few of the methods of LinkedHashMap. And the one I am particularly interested in is entry.

Is there a specific reason why Dictionary does not implement Deref<Target = LinkedHashMap>?
Or that the inner attribute is private?

Thanks in advance!

Because previously there is no such a need, it's ok to add an as_hashmap or to_hashmap convertion method.