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 Catalog;
let 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 MIT License.
-
The GNU LGPL, version 2.1, or any later version.
The paperspecs file in this crate is from libpaper, which documents it
to be in the public domain.