ajrcarey / pdfium-render

A high-level idiomatic Rust wrapper around Pdfium, the C++ PDF library used by the Google Chromium project.
https://crates.io/crates/pdfium-render
Other
364 stars 59 forks source link

Make image crate feature implicit rather than explicit to improve backward compatibility. #88

Closed ajrcarey closed 1 year ago

ajrcarey commented 1 year ago

Follow-on from #64. The use of the dep:image explicit feature dependency limited pdfium-render to Rust version 1.0.60 since release 0.7.27; this was unnecessary, since an implicit feature dependency is perfectly workable here. See https://doc.rust-lang.org/cargo/reference/features.html#optional-dependencies.

Additionally, corrected the import of PdfPoints into PdfPageImageObject - this import was previously tied to the use of the image feature, which is incorrect.

Updated README.md. Packaged for release as part of version 0.8.4.