Skip to main content
Participant
September 16, 2022
Question

Remove all links in multiple pdf files.

  • September 16, 2022
  • 2 replies
  • 5209 views

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

This topic has been closed for replies.

2 replies

JR Boulay
Community Expert
Community Expert
June 20, 2023

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();
Acrobate du PDF, InDesigner et Photoshopographe
Participant
June 20, 2023

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!

try67
Community Expert
Community Expert
June 20, 2023

Please share a sample file with those "web-links", before you remove them using this command.

try67
Community Expert
Community Expert
September 17, 2022

What kind of links are they? Link objects? Buttons? Ad-hoc links added by the application over plain-text URLs? Something else? Please clarify.

LSEDRMAuthor
Participant
September 19, 2022

They are URLs to websites "https://..."  with a few "mailto:...". No Ad-hoc links over plain text.

 

try67
Community Expert
Community Expert
September 19, 2022

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.