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