How do I replace outbound link URLs in a PDF document, using PHP
Posted
by Alex Poole
on Stack Overflow
See other posts from Stack Overflow
or by Alex Poole
Published on 2009-02-25T14:57:30Z
Indexed on
2010/03/17
14:01 UTC
Read the original article
Hit count: 335
I have a PDF document with some external links.
I'd like to parse the document, replace the destination of the links then close (and serve) the PDF document, all using PHP
I know I can do this with PDFLib but I don't want to incur this cost.
I could re-write the document with FPDF or DomPDF, but some of these PDFs are quite complex so this would be a major time investment.
Surely there must be a way to do this directly to PDF docs, using native PHP?
TIA
© Stack Overflow or respective owner