fschutt / printpdf

A fully-featured PDF library for Rust, WASM-ready
https://fschutt.github.io/printpdf/
MIT License
829 stars 98 forks source link

requires JavaScript for wasm builds #157

Closed urlordjames closed 10 months ago

urlordjames commented 1 year ago

Currently js-sys is required for wasm builds. I would like to use this crate in a non-JavaScript environment, so it would be convenient to be able to disable the use of js-sys with a feature. After briefly skimming through this project, it looks like js-sys is only used to automatically set the document creation date.

Automatically setting the creation date is also an issue for deterministic/reproducible documents on other platforms too. Exposing a feature to disable it for all platforms might also be worth considering.