Sebastian

Results 166 comments of Sebastian

Hello, while I don't think AI coding is a good idea, I welcome your effort to making a good entry point to the library. I have to read the whole...

Acknowledged, thanks for finding it. Unfortunately my todo list is overflowing also at the moment, so it may take a little time until I get around to fixing it.

I have not planned such a tool, but if one would be to write that in Rust, using the pdf library would probably be a good idea.

It returns an Error which is correct, because this is not a valid PDF file. `2/10/2024 19:54:36` is not a valid date. Check 7.9.4 of PDF32000. > Date values used...

@yutotakano You are welcome to make a PR that changes the behavior to a simple String wrapper with a function to try and extract the date.

The Id is used to locate the data in memory. Usize can address all memory on all platforms, so it is the natural choice for a type that references data...

Ah yes, this mess. We could add a Union type that parses the dictionary into two parts. ```rust struct Union(T, U); ... snip ... kids: Union ```

Actually it is much worse. ```rust struct Merged { a: Option, b: Option, } ```

@dlzht ```rust pub struct Merged { pub a: Option, pub b: Option, } impl FromDict for Merged { fn from_dict(dict: Dictionary, resolve: &impl Resolve) -> Result { let a =...

I am pretty sure that is from my confusion when I discovered that the same dictionary contains two different objects. Just delete it from the one that isn't supposed to...