Class PDFLinks

  • public class PDFLinks
    extends Object
    Extract links as list of LinkInfo from a PDF.

    In this first version, extracts only the links of type PDActionRemoteGoTo and PDActionLaunch (typically, when a PDF has a relative link to an external PDF).

    If the PDF is encrypted, a call to setPassword must be done before any attempt to get the links.


    Because we can parse the documents several times to get different links, we don't close it after every call (optimization), it is the caller responsibility to explicitly close it to avoid leaks.