PS_ADD_PDFLINK(3)

okay bestie, so this one is from the Library Functions Manual and it's literally called PS_ADD_PDFLINK(3) β€” say it with me, section three, library functions, we love a classic πŸŽ€


✨ NAME ✨

PS_add_pdflink β€” adds a link to a page in a second pdf document πŸ¦‹


✨ SYNOPSIS ✨

#include <pslib.h>

void PS_add_pdflink(PSDoc *psdoc, float llx, float lly, float urx, float
ury, char *filename, int page, const char *dest)

no cap, that's the whole signature, keep it exactly like that πŸ’…


✨ DESCRIPTION ✨

So what it does: it places a hyperlink at the position you give it, pointing at a second pdf document. Click on it and you branch straight over to that document at the page you picked. 🫢

  • the first page in a document has number 1 β€” yes, one-indexed, that's just how it is bestie
  • the parameter dest decides how the document is being viewed, and it can be fitpage, fitwidth, fitheight, or fitbbox ✨

The hyperlink start is a rectangle with its lower left corner at (llx, lly) and its upper right corner at (urx, ury). πŸ“

That rectangle has by default a thin blue border. iconic, honestly.

heads up queen: the hyperlink will not be visible if the document is printed or viewed πŸ‘€ but it will show up if the document is converted to pdf by either Acrobat Distillerβ„’ or Ghostview. so like, the vibe is there, it's just hiding. πŸ’€

✨ SEE ALSO ✨

go read those too, they're the rest of the link squad 🌸


✨ AUTHOR ✨

This manual page was written by Uwe Steinmann uwe@steinmann.cx. ty for your service πŸ«‘πŸ’œ


and that's the whole thing! the footer at the bottom is just PS_ADD_PDFLINK(3) all over again β€” no date, no version, just the name doing a lil encore 🎀✨ mwah, bye bestie πŸ’–

πŸ“¦ where this page comes from