Class Pdf3DDeactivationMode
Specifies the available modes for deactivating a 3D annotation.
Inheritance
System.Object
Pdf3DDeactivationMode
Namespace: Syncfusion.Pdf.Interactive
Assembly: Syncfusion.Pdf.Portable.dll
Syntax
public sealed class Pdf3DDeactivationMode : Enum
Examples
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Create a new page .
PdfPage page = document.Pages.Add();
//Create a new rectangle
RectangleF rectangle = new RectangleF(10, 40, 30, 30);
//Create a new Pdf3D Annotation.
Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d");
//Create a new Pdf3DActivation.
Pdf3DActivation activation = new Pdf3DActivation();
//Sets the DeactivationState.
activation.DeactivationMode = Pdf3DDeactivationMode.PageClose;
activation.ShowToolbar = false;
annotation.Activation = activation;
page.Annotations.Add(annotation);
//Save the document to disk.
document.Save("Output.pdf");
//close the document
document.Close(true);
'Create a new PDF document.
Dim document As New PdfDocument()
'Create a new page .
Dim page As PdfPage = document.Pages.Add()
'Create a new rectangle
Dim rectangle As New RectangleF(10, 40, 30, 30)
'Create a new Pdf3D Annotation.
Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d")
'Create a new Pdf3DActivation.
Dim activation As New Pdf3DActivation()
'Sets the DeactivationState.
activation.DeactivationMode = Pdf3DDeactivationMode.PageClose
activation.ShowToolbar = False
annotation.Activation = activation
page.Annotations.Add(annotation)
'Save the document to disk.
document.Save("Output.pdf")
'close the document
document.Close(True)
Fields
ExplicitDeactivation
Represents that the annotation should remain active until explicitly deactivated by a script or user action.
Declaration
public const Pdf3DDeactivationMode ExplicitDeactivation
Field Value
Type |
---|
Pdf3DDeactivationMode |
PageClose
Represents that the annotation should be deactivated as soon as the page is closed.
Declaration
public const Pdf3DDeactivationMode PageClose
Field Value
Type |
---|
Pdf3DDeactivationMode |
PageInvisible
Represents that the annotation should be deactivated as soon as the page containing the annotation becomes invisible.
Declaration
public const Pdf3DDeactivationMode PageInvisible
Field Value
Type |
---|
Pdf3DDeactivationMode |