Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 1.07 KB

File metadata and controls

15 lines (9 loc) · 1.07 KB

Extract text from link’s target in C# and VB.NET

This sample shows how to retrieve a link information and extract text starting from the where the link points to.

Description

Docotic.Pdf library represents PDF page links as PdfActionArea objects. By examining a PdfActionArea object, you can get a page which hosts the action area and the area bounds.

There is also the PdfActionArea.Action property. For links, this property contains an instance of the PdfGoToAction class. Any PdfGoToAction object contains information about the page associated with the link.

To extract text from the link’s target page, get the top offset of the target position. Then retrieve all text of the target page placed below the top offset.

See also