Giter Club home page Giter Club logo

libpaper's Introduction

The paper library and accompanying files are intended to provide a simple
way for applications to take actions based on a system- or user-specified
paper size.

This release is quite minimal, its purpose being to provide really basic
functions (obtaining the system paper name and getting the height and
width of a given kond of paper) that applications can immediately
integrate.
A more complete library, using a capabilities file for papers (giving,
in addition to the size, informations like paper weigth, color, etc)
will be released later.

See the sources for paperconf(1) in src/paper.c for how to use the library.

Adding new paper sizes
======================

If a paper format is missing, one need to add it to lib/paperspecs.  The
format of this file is one paper format per line, with the name of the
format, the width and height of the format separated with space.  You
may add an option measurement unit among in, ft, pt, m, dm, cm, mm or you
may leave the default unit of "point".  By defaults the width and height
are specified in the "point" unit, which is 1/72 inch (2.54 cm).  This
is the A4 entry:

  a4 210 297 mm

that was previously written as

  a4 595 842

The sizes here are 595 points / 72 points pr inch * 2.54 cm per
inch = 20.99 cm and 842/72*2.54 = 29.70 cm.  The A4 format
is 210x297 mm so this is a good approximation.  (Source:
<URL:http://en.wikipedia.org/wiki/A4_paper_size>)

Copyright (C) Yves Arrouye <[email protected]>, 1996
              Adrian Bunk  <[email protected]> , 2000

libpaper's People

Contributors

naota avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.