PDF Editing Issues

Create PDF Hyperlinks from Selected Text in VC++ with the Acrobat SDK

Steve KSteve K Nov 19, 2026 869 views

Question details

A developer wants to select text on a PDF page and create hyperlinks at those selections using VC++.

Create PDF Hyperlinks from Selected Text in 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.
Before you start

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.

Solution 1Recommended

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.

1
Choose an integration

Open the Adobe Acrobat SDK documentation and review the plug-in and interapplication communication guides for your target Acrobat version.

2
Capture the text selection

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.

3
Add link annotations

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.

4
Save and test the PDF

Save the modified document through the supported SDK workflow, reopen it in a PDF viewer, and click each link to verify its target.

5
Confirm implementation details

Ask in the Acrobat SDK developer forum if you need help finding sample code or confirming API support, permissions, or licensing for your application.

Use the Acrobat SDK to Create Link Annotations
Check integration support: Do not assume an external application has access to every plug-in API. The available workflow depends on the Acrobat version, integration type, and document permissions.
Free Microsoft Office alternative

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.

Work with PDFs alongside other office documentsOpen and edit compatible Microsoft Word, Excel, and PowerPoint formatsUse a familiar interface for everyday document tasksKeep common office tools together in a lightweight suite
microsoft office alternative - wps office

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.