Create PDF Hyperlinks from Selected Text in VC++ with the Acrobat SDK
Question details
A developer wants to select text on a PDF page and create hyperlinks at those selections using VC++.

- Product
- Adobe Acrobat SDK
- Device & OS
- not provided
- Scenario
- A VC++ application or plug-in needs to work with text selections and add links to a PDF page.
- Observed behavior
- The desired result is a clickable PDF link associated with each selected text area.
Identify the target Acrobat version and whether your VC++ code will run as an Acrobat plug-in or an external application. Check the Acrobat SDK documentation for the APIs, permissions, and licensing available to your integration.
Use the Acrobat SDK to Create Link Annotations
Use the SDK when a VC++ integration must select PDF text and add hyperlinks programmatically.
A PDF hyperlink is typically a link annotation placed over a page area and associated with a destination or action. A text selection may span multiple areas, so its page coordinates need to be mapped to the link regions.
Supported selection, cursor handling, and annotation operations can differ between Acrobat plug-ins and external applications. Confirm the capabilities of your chosen integration before implementation.
Open the Adobe Acrobat SDK documentation and review the plug-in and interapplication communication guides for your target Acrobat version.
Use the SDK's text-selection and page-view documentation to determine how to obtain the selected text and its page coordinates. If selection must be driven by an arrow cursor, check the supported mouse and selection handling for your integration.
Use the SDK's page-markup and link annotation APIs to create a link over each selected area, then assign the required URL or document destination.
Save the modified document through the supported SDK workflow, reopen it in a PDF viewer, and click each link to verify its target.
Ask in the Acrobat SDK developer forum if you need help finding sample code or confirming API support, permissions, or licensing for your application.

Work with PDF and Office Files in WPS Office
WPS Office is a free, lightweight Office alternative with a familiar interface and compatibility with common Microsoft Office formats for an easier move between applications. Its PDF tools can support manual document work, but they do not replace the Acrobat SDK workflow for programmatic VC++ selection and hyperlink creation.

Frequently Asked Questions
Can I create PDF hyperlinks from VC++ using the Acrobat interface alone?
For programmatic selection and link creation, consult the Acrobat SDK's text-selection, page-markup, and link APIs rather than relying on the standard Acrobat interface.
How is a hyperlink placed over selected PDF text?
Use the selection's page coordinates to define the area of a link annotation, then assign a URL or document destination using the supported SDK APIs. A selection spanning multiple areas may require multiple link regions.
Can an external VC++ application use the same APIs as an Acrobat plug-in?
Not necessarily. Review the Acrobat SDK plug-in and interapplication communication documentation for your Acrobat version to check which operations each integration supports.
Where can I find sample code or confirm licensing requirements?
Start with the Acrobat SDK documentation and samples, then ask in the Acrobat SDK developer forum about your specific API, integration, and licensing requirements.




