Open tronta opened 2 years ago
Same issue here. Apparently something is broken.
I looked at the examples (image example) and tried the way OP mentioned above.
Something is broken with the dependency on the image_crate dep. Any suggestions or workarounds?
After doing some research I defined "embedded_images" as feature in my Cargo.toml.
Sadly I didn't stumble across this in the docs or examples. Only by actually looking at the printpdf sources.
[dependencies]
printpdf = { version = "0.6.0", features = [ "embedded_images" ] }
Maybe that helps.
I used to embed an image like this:
But with the new version I get the following error message when using the
try_from
:Anything special I need to do now?