Package 

Class PdfWebLinks

  • All Implemented Interfaces:
    java.io.Closeable , java.lang.AutoCloseable

    
    public final class PdfWebLinks
     implements Closeable
                        

    Represents a collection of web links detected on a text page.

    Create instances using PdfTextPage.loadWebLinks. Always call close when done to release native resources.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final Integer count
    • Method Summary

      Modifier and Type Method Description
      final Integer getCount()
      final String getURL(Integer index) Get the URL of the link at the specified index.
      final List<RectF> getRects(Integer index, PdfTextPage textPage) Get the bounding rectangles of the link at the specified index.
      Unit close()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getRects

         final List<RectF> getRects(Integer index, PdfTextPage textPage)

        Get the bounding rectangles of the link at the specified index. Note: Native PDFium Android bindings don't expose WebLink rects directly, so we search for the URL text in the page content to find its location.