4 Replies Latest reply on Nov 1, 2016 6:34 AM by prhmusic2

    batch changing relative links to absolute links


      Hello All,


      I have a substantial amount of PDF files (around 50,000) that link to other PDF files. Now, that used to work fine before NPAPI is disabled on most browser, and portable devices do not allow this kind of links. I am looking to batch change those relative links (../folder/subfolder/file.pdf) to a full URL (http://www.mysite.com/pdfdocs/law/../folder/subfolder/file.pdf). [I am just appending the full URL to the actual relative Path).

      Is there a way to automatically achieve this (Batch process)?


      I tried using regular expressions on files to change the

      xxx 0 obj<</F(../folder/subfolder/file.pdf)/Type/Filespec>>



      xxx 0 obj <</URI(http://www.mysite.com/pdfdocs/law/../folder/subfolder/file.pdf)/S/URI>>



      but it turned out not to be that simple. there's so many different ways a file is referenced inside an object(not alway /F inside an single object), also the clickable area wouldn't directly reference the file, but it references another object that references the file object (if that makes sense)


      Any help would be much appreciated.


      Thanks a lot.