PS_ADD_WEBLINK(3)
β¨ PS_ADD_WEBLINK β¨
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
- 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