J-F-Liu / lopdf

A Rust library for PDF document manipulation.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compare Objects from two PDF

simepy opened this issue · comments

Hello !,

I can't find a way to compared two Object from different loading PDF.
After get the object from the two PDF, I try to do a basic "==" between obj-pdf1 to obj-pdf2, but I have a problem with the different type,
because is potently different type, I don't find a way to compare them.

Should I try all the as_TYPE and found the one working ?
I sure a more elegant way is possible.

I'm still learning Rust, so I'd be happy if you could help me with this.