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 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