Sebastian
Sebastian
I should also mention that it is data compatible with anything that stores field names (JSON, BSON, ..).
Actually, yes. In the old format the length of `nodes` is encoded first as `u64`. So those bytes can be used for a magic with sufficiently large values to cause...
It can totally generate a SVG and you can load the SVG to render it.. But why take the extra step?
The debug print for `Scene` is SVG. Not optimized at all, but it does work.
You can actually link most fonts directly in SVG. CID fonts are a bit more difficult.
The examples for the `pdf` crate are in https://github.com/pdf-rs/pdf/tree/master/pdf/examples If you want to read the rendered content and now the raw data, you may want to look at https://github.com/pdf-rs/pdf_render/blob/master/render/examples/trace.rs If...
It is also highly recommend to look at the PDF specification. This crate is basically just a Rust-Typed translation of the specification, and not a high-level abstraction.
The example from pdf_render above extracts text and its position.
Yes, there are no attempts to combine separate draw calls. I am actually working on table extraction right now, but it is not open source.
I can't and I don't think it makes sense. This is such an impossible problem that there can only be approximations to a solution and there will be a never...