J-F-Liu / lopdf

A Rust library for PDF document manipulation.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`add_xobject` does not follow resource references

IGI-111 opened this issue · comments

When calling add_xobject on a document that uses a reference in the XObject resource field, it fails on a Err(Type).

This is because it uses Dictionary::get_mut which does not attempt to dereference the resource field.