Copy link to clipboard
Copied
I have several hundred pdf files and need to remove all the links in all the files. Can this be done with scripting or a plug-in?
Thanks
Copy link to clipboard
Copied
What kind of links are they? Link objects? Buttons? Ad-hoc links added by the application over plain-text URLs? Something else? Please clarify.
Copy link to clipboard
Copied
They are URLs to websites "https://..." with a few "mailto:...". No Ad-hoc links over plain text.
Copy link to clipboard
Copied
Please share a sample page with these links, as your answer is a bit too vague to allow us to help you with this issue.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Yes, it is. And this tool edits a very specific kind of links, which is why I'm asking for further details...
Copy link to clipboard
Copied
Did you find an answer to your question about removing weblinks from multiple files?
I have the same question. Thank you.
Copy link to clipboard
Copied
Again, it depends what kind of links these are...
Copy link to clipboard
Copied
If the document does not contain any comments or form fields that you would like to keep, the easiest thing to do is to flatten it.
Use this script in an Action:
this.flattenPages();
Copy link to clipboard
Copied
Yes, that's the problem. I can use Action Wizard to flatten and save multiple files. But I need a way to just remove all weblinks (hyperlinks to URLs, because you asked earlier what kind of links) in multiple PDFs, while retaining comments or highlights.
This is easy to do with individual files but takes multiple steps -- opening a file, selecting "Edit PDF," then selecting "Links," then selecting "Remove Weblinks," then assuring Adobe you do actually want to remove all weblinks, then saving it. I'd like to do a batch process that just removes all weblinks from multiple PDFs and then saves them.
Thank you!
Copy link to clipboard
Copied
Please share a sample file with those "web-links", before you remove them using this command.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Use this code to remove all of these links from the file without any prompts or anything like that:
this.removeWeblinks();
You can use it in an Action and process multiple files. Just remember to add a Save command after executing this code.
Copy link to clipboard
Copied
Thank you!! That worked perfectly.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more