Rust IPreviewHandler Image Extractor

Job ID: 40302285

Budget: $250 – $750 USD

Need a small Rust console app that hosts an IPreviewHandler using the windows crate. Application should accept a file passed on the command line, and write the generated preview out as a single PNG image to the destination path supplied. It must accept Word, PDF, and Excel documents reliably on a fully-patched Windows 11 machine.

Key expectations
• Implementation in stable Rust, using windows = "0.62"
• Correct COM initialisation, handler activation, preview rendering, and clean release of all resources.
• Basic error messages printed to stderr when something goes wrong (invalid file, unsupported handler, write failure, etc.). No elaborate logging framework is necessary.
• The binary should accept, in order, the source file path and the output PNG path; no other flags are required.

Deliverables
1. Cargo project with well-commented source code.
2. Pre-built x64 release binary.
3. A short README explaining build steps, example usage, and any Windows features that must be enabled.
4. Confirmation that previews for .docx/.pdf/.xlsx on Windows 11 are rendered as PNG at a minimum resolution matching the handler’s default.

Clean, idiomatic code and clear structure will make future collaboration easier.