Jamie Chapman
Jamie Chapman

Reputation: 4239

Finding hyperlinks inside a PDF document?

I'm currently using Aspose PDF Kit to split a 'master PDF' up into individual documents + thumbnails. This works well at the moment, but the device I'll be rendering the PDF on won't know about the annotations/links within the PDF.

I understand there is a way to parse the PDF document to detect the X/Y position of a hyperlink etc, is there an simple way to extract/iterate across the document data so I can write it to an external XML file?

Upvotes: 6

Views: 2622

Answers (1)

Bobrovsky
Bobrovsky

Reputation: 14246

You may want to try Docotic.Pdf library for this (disclaimer: I work for Bit Miracle).

The library can be used to retrieve all hyperlinks in a document. You may retrieve bounding box, text and other properties of a link, too.

Please take a look at "Extract text from link target" sample. It may help you to get started.

Upvotes: 3

Related Questions