Class PdfSoundEncoding
The encoding format for the sample data.
Inheritance
System.Object
PdfSoundEncoding
Namespace: Syncfusion.Pdf.Interactive
Assembly: Syncfusion.Pdf.Base.dll
Syntax
public sealed class PdfSoundEncoding : Enum
Examples
//Load an existing document.
PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf");
//Gets the annotation from loaded document.
PdfLoadedSoundAnnotation soundAnnotation = document.Pages[1].Annotations[5] as PdfLoadedSoundAnnotation;
//Sets the sound annotation border
soundAnnotation.Border.Width = 4;
soundAnnotation.Border.HorizontalRadius = 20;
soundAnnotation.Border.VerticalRadius = 30;
//Set the PDF sound annotation icon.
soundAnnotation.Icon = PdfSoundIcon.Speaker;
//Sets the PDF sound.
PdfSound sound = new PdfSound("Startup.wav");
soundAnnotation.Sound=sound;
//Save the document.
document.Save("SoundAnnotation.pdf");
document.Close(true);
'Load an existing document.
Dim document As New PdfLoadedDocument("..\..\Annotations.pdf")
'Gets the annotation from loaded document.
Dim soundAnnotation As PdfLoadedSoundAnnotation = document.Pages(1).Annotations(5) as PdfLoadedSoundAnnotation
'Sets the sound annotation border
soundAnnotation.Border.Width = 4
soundAnnotation.Border.HorizontalRadius = 20
soundAnnotation.Border.VerticalRadius = 30
'Set the PDF sound annotation icon.
soundAnnotation.Icon = PdfSoundIcon.Speaker
Sets the PDF sound.
Dim sound As PdfSound = New PdfSound("Startup.wav")
sound.Channels = PdfSoundChannels.Mono
'Save the document.
document.Save("SoundAnnotation.pdf")
document.Close(True)
Fields
ALaw
A-law�encoded samples.
Declaration
public const PdfSoundEncoding ALaw
Field Value
Type |
---|
PdfSoundEncoding |
MuLaw
M-law�encoded samples.
Declaration
public const PdfSoundEncoding MuLaw
Field Value
Type |
---|
PdfSoundEncoding |
Raw
Unspecified or unsigned values in the range 0 to 2^B - 1.
Declaration
public const PdfSoundEncoding Raw
Field Value
Type |
---|
PdfSoundEncoding |
Signed
Twos-complement values.
Declaration
public const PdfSoundEncoding Signed
Field Value
Type |
---|
PdfSoundEncoding |