PS_ADD_PDFLINK(3)
π PS_ADD_PDFLINK π
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
destdecides how the document is being viewed, and it can befitpage,fitwidth,fitheight, orfitbboxβ¨
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
- 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