Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
MuPDF 1.25.1 documentation
Light Logo Dark Logo
MuPDF 1.25.1 documentation

User Guide

  • Quick Start Guide
  • Using MuPDF with C
  • Using MuPDF WASM
  • The MuPDF Coordinate System

API Reference

  • MuPDF on the command line
    • mutool draw
    • mutool convert
    • mutool trace
    • mutool show
    • mutool extract
    • mutool clean
    • mutool merge
    • mutool poster
    • mutool create
    • mutool sign
    • mutool info
    • mutool pages
    • mutool trim
    • mutool run
  • C API
    • Core API
    • The Fitz Context
    • Error Handling
    • Memory Allocation
    • Pool Allocator
    • Reference Counting
    • Hash Table
    • Binary Tree
    • XML Parser
    • String Functions
    • String Formatting
    • Math Functions
    • I/O API
    • Buffers
    • Input Streams and Filters
    • Output Streams and Filters
    • File Archives
    • Graphics API
    • Colors
    • Pixmaps
  • MuPDF & Javascript
  • Language Bindings

Other

  • Progressive Loading
  • Android Library
  • Changes
  • Third Party Libraries Used by MuPDF
Back to top
View this page

Link¶

Link objects contain information about page links.

getBounds()¶

Returns a rectangle describing the link’s location on the page.

Returns:

[ulx,uly,lrx,lry].

EXAMPLE

var rect = link.getBounds();
getURI()¶

Returns a string URI describing the link’s destination. If isExternal returns true, this is a URI for a suitable browser, if it returns false pass it to resolveLink to access to the destination page in the document.

Returns:

String.

EXAMPLE

var uri = link.getURI();
isExternal()¶

wasm only

Returns a boolean indicating if the link is external or not. If the link URI has a valid scheme followed by : then it considered to be external, e.g. https://example.com.

Returns:

Boolean.

EXAMPLE

var isExternal = link.isExternal();
Copyright © 2004-2025, Artifex
Made with Furo
Last updated on March 28, 2025
On this page
  • Link
    • getBounds()
    • getURI()
    • isExternal()