How to Convert PDF Web Links to Open File Links
Question details
The user needs a way to automatically convert existing hyperlinks in a PDF from 'Open a Web Link' actions to 'Open a File' actions.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Modifying hyperlink action types in a PDF exported from FrameMaker where the default links were generated as web URLs instead of local file paths.
- Observed behavior
- The PDFs contain 'Open a Web Link' actions, and Adobe Acrobat lacks a native built-in batch action or regular expression tool to automate the conversion to 'Open a File'.
Before modifying your document's links or running custom scripts, ensure you have enabled plain text URL detection in your PDF reader's preference settings.
Enable Automatic URL Link Creation in Preferences
Use Adobe Acrobat's built-in preferences to automatically detect standard URLs and convert them into clickable links when opening the document.
While Acrobat does not have a batch converter for changing web links to file links directly, you can force it to recognize standard URL patterns automatically if the document contains valid plain text URLs.
Launch Adobe Acrobat and navigate to Edit > Preferences from the top menu bar.
Select the General category from the left sidebar. Look for the Basic Tools section.
Check the box labeled 'Create Links from URLs' and click OK to save your changes.

Export as PostScript and Reconvert to PDF
Convert the original file into a PostScript document and let Acrobat regenerate the PDF to refresh link detections.
Use Custom Acrobat JavaScript
Utilize the Acrobat JavaScript API to programmatically loop through URLs and change their action states.
Easily Edit and Manage PDF Links with WPS Office
While batch converting link types might require complex scripts in other PDF software, WPS PDF provides an intuitive, user-friendly interface to quickly add, edit, or modify hyperlinks to open local files or web pages.
- 1. Open PDF in WPS Office: Launch WPS Office and open your target PDF document.
- 2. Access the Link Tool: Navigate to the Edit tab on the top ribbon and click on the Link button.
- 3. Select Text Area: Draw a selection box over the text or image you want to turn into a hyperlink.
- 4. Configure File Link: In the Link dialog, select 'Open a File', browse to your local target document, and confirm.

Frequently Asked Questions
Can I batch convert PDF links using standard Adobe Acrobat tools?
Adobe Acrobat does not feature a built-in batch action or regular expression tool specifically designed to convert link action types. Automating this process usually requires custom JavaScript via the console or third-party PDF plug-ins.
Why didn't Acrobat automatically detect my plain text URLs?
Acrobat requires URLs to follow a standard format (such as https://www.example.com) and use supported fonts. If the document's text is encoded, heavily formatted, or rendered by OCR over a scanned image, the automatic link creation feature may fail to recognize the text as a URL.
What is the addLink method in Acrobat JavaScript?
The addLink method is part of the Adobe Acrobat JavaScript API. It allows developers to programmatically define a rectangle on a PDF page and assign a specific hyperlink action to it, making it useful for creating custom scripts to automate link management.




