Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Remove all links in multiple pdf files.

New Here ,
Sep 16, 2022 Sep 16, 2022

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

TOPICS
Edit and convert PDFs , How to , JavaScript
5.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 17, 2022 Sep 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 19, 2022 Sep 19, 2022

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

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 19, 2022 Sep 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 22, 2022 Sep 22, 2022
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 22, 2022 Sep 22, 2022

Yes, it is. And this tool edits a very specific kind of links, which is why I'm asking for further details...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 19, 2023 Jun 19, 2023

@try67 

 

Did you find an answer to your question about removing weblinks from multiple files?

 

I have the same question. Thank you. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 20, 2023 Jun 20, 2023

Again, it depends what kind of links these are...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 20, 2023 Jun 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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 20, 2023 Jun 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!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 20, 2023 Jun 20, 2023

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 20, 2023 Jun 20, 2023

Sure, it's attached. But the process is the same regardless of PDF. And "weblink" is Adobe's term, not mine. I've also attached a screenshot of the command I am talking about.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 20, 2023 Jun 20, 2023

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 20, 2023 Jun 20, 2023
LATEST

Thank you!! That worked perfectly.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines