We have a large number of pdf files that contains links to other pdf files. What I would like to do is to scan each pdf file and extract which other files are linked from this file, since this is not known. Ive used GetLinks in order to retrieve the links for one page, but as I read it from the documentation its only possible to edit some graphical appearence and setAction, not actually retreive the information from the actual action in the link object. So my question is, are there any workarounds for this case? If its not possible to retreive the action information, is it possible to programmaticly trigger the event(mouse up i think) for the each link, since the link object contains coordinates for the link? And then retrieve information about the new document that is opened. Then go to next link object and so on. Any ideas would be very appreciated.
Thank you for your answer,
Just one quick follow-up question, is it possible to save the pdf in antoher format, including the links? The supported office formats does not include the links, and the postscript format does not include it. Am I missing something fundamental when Im saving?
Hi again and thx for your input,
Ive saved the file as xml1.0 and I found references to links in the table object, example:
<Link>List of Documents </Link>
But nothing more, no action code, and more importantly the filename that its linked to. Ive check the settings options when saving in this format, but it has no settings regarding links. Am I missing something here?