paper-sizes 0.4.0

Detects paper sizes and defaults
Documentation

paper-sizes

paper-sizes is a library to detect the user's preferred paper size as well as system-wide and per-user known sizes.

This is a Rust equivalent of the library features in libpaper.

This crate does not provide the paper or paperconf programs. Use libpaper for those.

Use

To obtain the default paper size, create a Catalog, then obtain the default paper size:

use paper_sizes::Catalog;

let catalog = Catalog::new();
let default_size = catalog.default_paper().size;

See the documentation for more details.

License

This crate is distributed under your choice of the following licenses:

The paperspecs file in this crate is from libpaper, which documents it to be in the public domain.