Home  Products  Purchase  Downloads  Demos  Forums  Blogs  Ticket  Wiki  API  Corporate

com.aspose.pdf.elements
Class HyperLinkToOuterPdf

java.lang.Object
  extended bycom.aspose.pdf.elements.PdfElementBase
      extended bycom.aspose.pdf.elements.HyperLink
          extended bycom.aspose.pdf.elements.HyperLinkToOuterPdf
All Implemented Interfaces:
java.lang.Cloneable

public class HyperLinkToOuterPdf
extends HyperLink

Represents a link in a Pdf document that links to another pdf file.


Constructor Summary
HyperLinkToOuterPdf(Segment segment, java.lang.String pdfFileName, int pageNumber)
          Initializes a new instance of the HyperlinkToOuterPdf class.
 
Method Summary
 java.lang.Object clone()
          Clone an object.
 org.w3c.dom.Element getDOMElement()
          Gets a DOM representation of the pdf element.
 int getPageNumber()
          Gets an int value that indicates the page number of the link page.
 java.lang.String getPdfFileName()
          Gets a string that indicates the link pdf file name.
 void setPageNumber(int number)
          Sets an int value that indicates the page number of the link page.
 void setPdfFileName(java.lang.String fileName)
          Sets a string that indicates the link file name.
 
Methods inherited from class com.aspose.pdf.elements.PdfElementBase
getElementFactory, getID, getNameIndex, setID
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HyperLinkToOuterPdf

public HyperLinkToOuterPdf(Segment segment,
                           java.lang.String pdfFileName,
                           int pageNumber)
Initializes a new instance of the HyperlinkToOuterPdf class.

Parameters:
segment - The segment that owns the hyperlink.
pageNumber - An int value that indicates the page number of the link page.
Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Description copied from class: PdfElementBase
Clone an object.

Overrides:
clone in class HyperLink
Throws:
java.lang.CloneNotSupportedException
See Also:
java.lang.Object#clone()

getDOMElement

public org.w3c.dom.Element getDOMElement()
                                  throws AsposeBaseException
Description copied from class: PdfElementBase
Gets a DOM representation of the pdf element.

Overrides:
getDOMElement in class HyperLink
Throws:
AsposeBaseException
See Also:
PdfElementBase.getDOMElement()

getPageNumber

public int getPageNumber()
Gets an int value that indicates the page number of the link page.


setPageNumber

public void setPageNumber(int number)
Sets an int value that indicates the page number of the link page.


getPdfFileName

public java.lang.String getPdfFileName()
Gets a string that indicates the link pdf file name.


setPdfFileName

public void setPdfFileName(java.lang.String fileName)
Sets a string that indicates the link file name.

Parameters:
fileName - The pdf file name to set.