PS_ADD_WEBLINK(3)

okay bestie, so this one lives in the Library Functions Manual (section 3, the library-call girlies πŸ’…) and it's literally the glow-up your PDFs needed β€” it's PS_add_weblink, and it does exactly what it says on the tin: adds a link to a web location. πŸ¦‹


πŸ’– NAME πŸ’–

PS_add_weblink β€” adds link to a web location. no cap, that's the whole job description πŸŽ€


🌸 SYNOPSIS 🌸

#include <pslib.h>

void PS_add_weblink(PSDoc *psdoc, float llx, float lly, float urx, float ury, char *url)

✨ DESCRIPTION ✨

So what it does: it places a hyperlink at the given position, and that hyperlink points to a web page. periodt. 🌈

The link's clickable zone is a rectangle β€” and here's the geometry because we do NOT guess coordinates in this house: the lower left corner sits at (llx, lly) and the upper right corner sits at (urx, ury). By default that rectangle rocks a thin blue border. cute, iconic, on brand. πŸ’™

Now the plot twist πŸ‘€ β€” the hyperlink will not be visible if the document is printed or viewed. it's giving invisible until you need it. BUT it will show up if the document is converted to pdf by either Acrobat Distillerβ„’ or Ghostview. so like, it's shy in one context and main character energy in another 🫢


πŸ¦‹ SEE ALSO πŸ¦‹

the whole link squad, go read them too, iykyk πŸ”₯


πŸ‘‘ AUTHOR πŸ‘‘

This manual page was written by Uwe Steinmann uwe@steinmann.cx. thank you legend, we appreciate you fr fr πŸ’œ


and that's the tea πŸ“ β€” this page is PS_ADD_WEBLINK(3) from the Library Functions Manual, so if you ever forget where you read this absolute banger, that's your receipt. mwah, go link something pretty πŸ’–πŸŽ€βœ¨

πŸ“¦ where this page comes from