PAPERINFO(3)
πΈ NAME πΈ
okay so bestie, welcome to the paperinfo squad π β this whole little crew is here to give you the tea about a paper:
paperinfopaperwithsizepaperfirstpaperlastpapernextpaperprev
and what do they all do? they return informations about a paper. that's the vibe. periodt. β¨
π SYNOPSYS π
(yes the heading is spelled like that in the original and no i will not be fixing it, it's iconic π )
#include <paper.h>
const struct paper* paperinfo(const char* papername)
const struct paper* paperwithsize(double psw, double psh)
char* papername(const struct paper*)
double paperpswidth(const struct paper*)
double paperpsheigth(const struct paper*)
const struct paper* paperfirst(void)
const struct paper* papernext(const struct paper* pinfo)
const struct paper* paperprev(const struct paper* pinfo)
const struct paper* paperlast(void)
π¦ DESCRIPTION π¦
so like, let's go one by one, bestie, no gatekeeping π
paperinfo()β hands you a pointer to astruct paperstuffed with informations about the paper whose name ispapername. it's giving "tell me everything about this one specific paper" πpaperwithsize()β this one goes hunting for a paper whose width and height arepswandpsh, measured in PostScript points, and then returns a pointer to astruct papermatching the paper it found. lowkey a scavenger hunt π΅οΈβοΈpapername()β returns the name of a paper, described by an opaquestruct paperobject. yes opaque, we don't peek inside, we respect privacy π«Άpaperpswidth()β returns the width, in PostScript points, of a paper described by an opaquestruct paperobject.paperpsheight()β returns the height, in PostScript points, of a paper described by an opaquestruct paperobject.paperfirst()andpaperlast()β they return the first and last entries for papers. first one, last one, bookends fr fr π- and the way you walk through them, entry to entry? that's what
papernext()andpaperprev()are for, respectively. next and previous, like a little slideshow of papers ποΈβ¨
heads up: notice the synopsis sayspaperpsheigthand the description sayspaperpsheight. that's just how it is in the original, i'm not touching it, i'm just reporting the facts π
π SEE ALSO π
and that's the whole page, bestie π this one came from the Library Functions Manual, dated 24 September 1996 β yes she's vintage, she's classic, she's iconic β¨ go forth and look up your papers ππ¦π
π¦ where this page comes from
- centos-stream 9: libpaper-devel 1.1.28-4.el9 Β· GPLv2
- centos-stream 9: libpaper-devel 1.1.28-4.el9 Β· GPLv2
- debian bookworm: libpaper-dev 1.1.29
- nixos 26.05: libpaper 1.1.29
- ubuntu jammy: libpaper-dev 1.1.28build2
- ubuntu noble: libpaper-dev 1.1.29build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms