PS_SET_INFO(3)
π NAME π
PS_set_info β bestie, this one sets the information fields of your document β¨
π SYNOPSIS π
#include <pslib.h>
void PS_set_info(PSDoc *p, const char *key, const char *val)
πΈ DESCRIPTION πΈ
okay so, PS_set_info sets certain information fields of the document. no cap. these fields get shown as a comment up in the header of the PostScript file, like a lil name tag for your doc π·οΈ
the values you can set are Keywords, Subject, Title, Creator, Author, BoundingBox, and Orientation. lowkey iconic lineup ngl π
π«Ά heads up bestie: be aware that some of them has a meaning to PostScript viewers. so like, don't just yeet random stuff in there, some of these fields actually mean something to the viewers, fr fr.
the BoundingBox is usually set to the value given to the first page. but β and this is the important part β this only works if PS_findfont(3) has not been called before. in such cases the BoundingBox would be left unset unless you set it explicitly with this function. so if PS_findfont(3) already happened, the auto-magic is off the table and you gotta do it yourself, periodt π
π SEE ALSO π
PS_findfont(3), PS_begin_page(3)
π¦ AUTHOR π¦
this manual page was written by Uwe Steinmann uwe@steinmann.cx. giving credit where credit is due, we love to see it π
and that's the whole vibe, bestie β this lil page lives in the Library Functions Manual as PS_set_info(3) π stay slaying with your PostScript docs, mwah π
π¦ where this page comes from
- debian bookworm: pslib-dev 0.4.7-1+b1
- debian trixie: pslib-dev 0.4.8-1+b1
- ubuntu jammy: pslib-dev 0.4.7-1
- ubuntu noble: pslib-dev 0.4.7-1build2
- ubuntu questing: pslib-dev 0.4.8-1
- ubuntu resolute: pslib-dev 0.4.8-1build1
- ubuntu stonking: pslib-dev 0.4.8-3 Β· GPL-2.0-or-later OR LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms