public class PdfSoundAnnotation extends PdfMarkupAnnotation
inReplyTo, popup
Accepted, Canceled, Completed, HIDDEN, HIGHLIGHT_INVERT, HIGHLIGHT_NONE, HIGHLIGHT_OUTLINE, HIGHLIGHT_PUSH, HIGHLIGHT_TOGGLE, INVISIBLE, LOCKED, LOCKED_CONTENTS, Marked, MarkedModel, NO_ROTATE, NO_VIEW, NO_ZOOM, None, page, PRINT, READ_ONLY, Rejected, ReviewModel, STYLE_BEVELED, STYLE_DASHED, STYLE_INSET, STYLE_SOLID, STYLE_UNDERLINE, TOGGLE_NO_VIEW, Unmarked
Modifier | Constructor and Description |
---|---|
protected |
PdfSoundAnnotation(PdfDictionary pdfObject)
Instantiates a new
PdfSoundAnnotation instance based on PdfDictionary
instance, that represents existing annotation object in the document. |
|
PdfSoundAnnotation(PdfDocument document,
Rectangle rect,
InputStream soundStream,
float sampleRate,
PdfName encoding,
int channels,
int sampleSizeInBits)
Creates a sound annotation.
|
|
PdfSoundAnnotation(Rectangle rect,
PdfStream sound)
Creates a new Sound annotation.
|
Modifier and Type | Method and Description |
---|---|
PdfName |
getIconName()
The name of an icon that is used in displaying the annotation.
|
PdfStream |
getSound() |
PdfName |
getSubtype()
Gets a
PdfName which value is a subtype of this annotation. |
PdfSoundAnnotation |
setIconName(PdfName name)
The name of an icon that is used in displaying the annotation.
|
getCreationDate, getExternalData, getInReplyTo, getInReplyToObject, getIntent, getOpacity, getPopup, getPopupObject, getReplyType, getRichText, getSubject, getText, setCreationDate, setExternalData, setInReplyTo, setIntent, setOpacity, setPopup, setReplyType, setRichText, setSubject, setText
addAssociatedFile, flush, getAppearanceDictionary, getAppearanceObject, getAppearanceState, getAssociatedFiles, getBlendMode, getBorder, getColorObject, getContents, getDate, getDownAppearanceObject, getFlags, getLang, getName, getNonStrokingOpacity, getNormalAppearanceObject, getPage, getPageObject, getRectangle, getRolloverAppearanceObject, getStrokingOpacity, getStructParentIndex, getTitle, hasFlag, isWrappedObjectMustBeIndirect, makeAnnotation, put, remove, resetFlag, setAppearance, setAppearance, setAppearanceState, setBlendMode, setBorder, setBorder, setColor, setColor, setColor, setContents, setContents, setDate, setDownAppearance, setDownAppearance, setFlag, setFlags, setLang, setLayer, setName, setNonStrokingOpacity, setNormalAppearance, setNormalAppearance, setPage, setRectangle, setRolloverAppearance, setRolloverAppearance, setStrokingOpacity, setStructParentIndex, setTitle
ensureObjectIsAddedToDocument, ensureUnderlyingObjectHasIndirectReference, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidRelease
public PdfSoundAnnotation(Rectangle rect, PdfStream sound)
rect
- the rectangle that specifies annotation position and bounds on pagesound
- the PdfStream
with soundprotected PdfSoundAnnotation(PdfDictionary pdfObject)
PdfSoundAnnotation
instance based on PdfDictionary
instance, that represents existing annotation object in the document.pdfObject
- the PdfDictionary
representing annotation objectPdfAnnotation.makeAnnotation(PdfObject)
public PdfSoundAnnotation(PdfDocument document, Rectangle rect, InputStream soundStream, float sampleRate, PdfName encoding, int channels, int sampleSizeInBits) throws IOException
document
- the PdfDocument
to which annotation will be addedrect
- the rectangle that specifies annotation position and bounds on pagesoundStream
- the PdfStream
with soundsampleRate
- the sampling rate, in samples per secondencoding
- the encoding format for the sample datachannels
- the number of sound channelssampleSizeInBits
- the number of bits per sample value per channelIOException
- in case of corrupted data or source stream problemspublic PdfName getSubtype()
PdfAnnotation
PdfName
which value is a subtype of this annotation.
See ISO-320001 12.5.6, "Annotation Types" for the reference to the possible types.getSubtype
in class PdfAnnotation
public PdfStream getSound()
public PdfName getIconName()
setIconName(PdfName)
.PdfName
that specifies the icon for displaying annotation, or null if icon name is not specified.public PdfSoundAnnotation setIconName(PdfName name)
name
- a PdfName
that specifies the icon for displaying annotation. Possible values are different
for different annotation types:
PdfSoundAnnotation
instance.Copyright © 1998–2023 Apryse Group NV. All rights reserved.