Package com.evopdf
Class SoundLinkElement
java.lang.Object
com.evopdf.PageElement
com.evopdf.SoundLinkElement
Represents a link to a sound file in PDF
-
Constructor Summary
ConstructorsConstructorDescriptionSoundLinkElement(RectangleFloat linkRectangle, byte[] soundData) Constructs a sound link element at the given location in PDF page and using the given sound dataSoundLinkElement(RectangleFloat linkRectangle, String filePath) Constructs a sound link element at the given location in PDF page and using the given sound file -
Method Summary
Modifier and TypeMethodDescriptionGets the sound file link rectangle in PDF pagevoidsetLinkRectangle(RectangleFloat linkRectangle) Sets the sound file link rectangle in PDF pagevoidsetSoundData(byte[] soundData) Sets the sound databyte[]Gets the sound data
-
Constructor Details
-
SoundLinkElement
Constructs a sound link element at the given location in PDF page and using the given sound file- Parameters:
linkRectangle- the link rectangle in pagefilePath- the sound file- Throws:
Exception- an exception is thrown if the sound link element be added
-
SoundLinkElement
Constructs a sound link element at the given location in PDF page and using the given sound data- Parameters:
linkRectangle- the link rectangle in pagesoundData- the sound data
-
-
Method Details
-
linkRectangle
Gets the sound file link rectangle in PDF page- Returns:
- the sound file link rectangle in PDF page
-
setLinkRectangle
Sets the sound file link rectangle in PDF page- Parameters:
linkRectangle- the sound file link rectangle in PDF page to set
-
soundData
public byte[] soundData()Gets the sound data- Returns:
- the sound data
-
setSoundData
public void setSoundData(byte[] soundData) Sets the sound data- Parameters:
soundData- the sound data to set
-