Docen
← BLOG·ENGINEERING

Extracting hyperlinks from PDFs

Links are data too. Here's how Docen recovers them from PDFs.

THE DOCEN TEAM·Apr 15, 2025·4 MIN READ

Links are data too. Here's how Docen recovers them from PDFs.

The problem

Getting hyperlink extraction right is deceptively hard. The average case is easy; the tail is brutal, and the tail is what breaks pipelines.

What we did

We treated it as a measurement problem first. Before changing the model, we built a labeled set of the hardest examples we could find, so we could tell whether any change actually helped.

From there, the work was iterative: adjust the model, score it on the hard set, keep what moved the number, and throw out what didn't. No change ships without evidence.

  • A benchmark built from real, difficult documents.
  • Targeted training on the failure cases.
  • Confidence signals so downstream systems know when to check.

Results

98.7%
on our hard set
−41%
error rate

Want to see it on your own documents? Open the playground or reach out — we're happy to run a sample with you.

PDFhyperlinksmetadata
[]TRY DOCEN

Run your hardest documentthrough Docen.

See the structured output for yourself, or reach the team at [email protected].