Package com.evopdf

# Class FileLinkElement

java.lang.Object
com.evopdf.PageElement
com.evopdf.FileLinkElement

public class FileLinkElement extends PageElement
This class represents a link to an external file in a PDF document

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `FileLinkElement(RectangleFloat linkRectangle, String filePath)`
  Constructs a file link element

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `filePath()`
  Gets the external file path
  `RectangleFloat`
  `linkRectangle()`
  Gets the file link element rectangle in PDF page
  `void`
  `setFilePath(String filePath)`
  Sets the external file path
  `void`
  `setLinkRectangle(RectangleFloat linkRectangle)`
  Sets the file link element rectangle in PDF page

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### FileLinkElement

    public FileLinkElement(RectangleFloat linkRectangle, String filePath)
    Constructs a file link element
    Parameters:
      `linkRectangle` - the link rectangle in page
      `filePath` - the linked file

- ## Method Details

  - ### linkRectangle

    public RectangleFloat linkRectangle()
    Gets the file link element rectangle in PDF page
    Returns:
      the file link element rectangle in PDF page

  - ### setLinkRectangle

    public void setLinkRectangle(RectangleFloat linkRectangle)
    Sets the file link element rectangle in PDF page
    Parameters:
      `linkRectangle` - the file link element rectangle in PDF page

  - ### filePath

    public String filePath()
    Gets the external file path
    Returns:
      the external file path

  - ### setFilePath

    public void setFilePath(String filePath)
    Sets the external file path
    Parameters:
      `filePath` - the external file path to link