Sebastian
Sebastian
Constructing PDFs is very much under construction. Take a look at https://github.com/pdf-rs/pdf/blob/master/examples/content/src/main.rs and use page.content instead. Note that so far no cleanup is done. It just writes another trailer to...
No. PDFs need to be there entirely. Technically there exists an extension that allows processing partial PDFs, but that would require a much more complex architecture.
for now you can add a save_to_vec here: https://github.com/pdf-rs/pdf/blob/master/pdf/src/file.rs#L261 ``` pub fn save_to_vec(&mut self, path: impl AsRef) -> Result { self.storage.save(&mut self.trailer)?) } ``` Note that the output still contains...
Yea, I ran into the same problem. This should be fixed now. Try running `cargo update` (or `git pull` if you have a local repo).
looks good to me
Looks like it is using an old version. Line 111 currently contains a comment...
Yes, it uses the last release on crates.io: `pdf = "0.7.2"`. I need to check if all blockers from releasing the next version have been resolved.
Hello, you already did the next best thing to fixing it yourself. Seems something is fishy with the xrefs, but I have not looked at the details yet.
Not sure how to handle the file. It is quite broken.
The xref section is broken. The alternative is to ignore it and parse the entire file and build up a new xref section.