Introduction to libpaper

This package is intended to provide a simple way for applications to take actions based on a system or user-specified paper size.

This package is known to build and work properly using an LFS 12.0 platform.

Package Information

Installation of libpaper

Install libpaper by running the following commands:

./configure --prefix=/usr        \
            --sysconfdir=/etc    \
            --disable-static     \
            --enable-relocatable \
            --docdir=/usr/share/doc/libpaper-2.1.1 &&

To test the results, issue: make check.

Now, as the root user:

make install

Command Explanations

--disable-static: This switch prevents installation of static versions of the libraries.

--enable-relocatable: This option is needed to run the tests.

Configuring libpaper

Configuration Information

The paper size is automatically determined from the system locale; see LC_PAPER in locale(7). If you want to override it, create a papersize file in the user configuration directory. For example:

mkdir -pv ~/.config &&
echo "a4" > ~/.config/papersize

If you want to override the paper size globally (for all users), set up the PAPERSIZE environment variable. For example:

echo "PAPERSIZE=a4" > /etc/profile.d/

You may use a different paper size, such as letter.


Installed Programs: paper and paperconf
Installed Library:
Installed Directories: /usr/share/doc/libpaper-2.1.1

Short Descriptions


prints paper configuration information


prints paper configuration information in a compatibility mode

contains functions for interrogating the paper library