PDF3DAnnotation

Inheritance: java.lang.Object, com.aspose.pdf.BaseParagraph, com.aspose.pdf.Annotation

public final class PDF3DAnnotation extends Annotation

Class PDF3DAnnotation. This class cannot be inherited.

Constructors

ConstructorDescription
PDF3DAnnotation(Page page, Rectangle rect, PDF3DArtwork pdf3DArtwork)Initializes a new instance of the PDF3DAnnotation class.
PDF3DAnnotation(Page page, Rectangle rect, PDF3DArtwork pdf3DArtwork, int activation)Initializes a new instance of the PDF3DAnnotation class.

Methods

MethodDescription
getPdf3DArtwork()Gets the 3D Artwork.
getLightingScheme()Gets the lighting scheme.
getContent()Gets or sets the content.
setContent(PDF3DContent value)Gets or sets the content.
getRenderMode()Gets the render mode.
setDefaultViewIndex(int index)Sets the index of the default view.
getViewArray()Gets the view array.
getAnnotationType()Gets type of annotation.
accept(AnnotationSelector visitor)Accepts visitor for annotation processing.
setImagePreview(String filename)Sets the image preview.
setImagePreview(InputStream image)Sets the image preview.
clearImagePreview()Clears the image preview.
getImagePreview()Gets the image preview.

PDF3DAnnotation(Page page, Rectangle rect, PDF3DArtwork pdf3DArtwork)

public PDF3DAnnotation(Page page, Rectangle rect, PDF3DArtwork pdf3DArtwork)

Initializes a new instance of the PDF3DAnnotation class.

Parameters:

ParameterTypeDescription
pagePageThe page.
rectRectangleThe rectangle.
pdf3DArtworkPDF3DArtworkThe 3D Artwork.

PDF3DAnnotation(Page page, Rectangle rect, PDF3DArtwork pdf3DArtwork, int activation)

public PDF3DAnnotation(Page page, Rectangle rect, PDF3DArtwork pdf3DArtwork, int activation)

Initializes a new instance of the PDF3DAnnotation class.

Parameters:

ParameterTypeDescription
pagePageThe page.
rectRectangleThe rectangle.
pdf3DArtworkPDF3DArtworkThe 3D Artwork.
activationintThe activation mode.

getPdf3DArtwork()

public PDF3DArtwork getPdf3DArtwork()

Gets the 3D Artwork.

Value: The PDF3 d artwork.

Returns: PDF3DArtwork - PDF3DArtwork object

getLightingScheme()

public PDF3DLightingScheme getLightingScheme()

Gets the lighting scheme.

Value: The lighting scheme.

Returns: PDF3DLightingScheme - PDF3DLightingScheme object

getContent()

public PDF3DContent getContent()

Gets or sets the content.

Value: The content.

Returns: PDF3DContent - PDF3DContent object

setContent(PDF3DContent value)

public void setContent(PDF3DContent value)

Gets or sets the content.

Value: The content.

Parameters:

ParameterTypeDescription
valuePDF3DContentPDF3DContent object

getRenderMode()

public PDF3DRenderMode getRenderMode()

Gets the render mode.

Value: The render mode.

Returns: PDF3DRenderMode - PDF3DRenderMode object

setDefaultViewIndex(int index)

public void setDefaultViewIndex(int index)

Sets the index of the default view.

Parameters:

ParameterTypeDescription
indexintThe default view index.

getViewArray()

public PDF3DViewArray getViewArray()

Gets the view array.

Value: The view array.

Returns: PDF3DViewArray - PDF3DViewArray object

getAnnotationType()

public AnnotationType getAnnotationType()

Gets type of annotation.

Value: The type of the annotation.

Returns: AnnotationType

accept(AnnotationSelector visitor)

public void accept(AnnotationSelector visitor)

Accepts visitor for annotation processing.

Parameters:

ParameterTypeDescription
visitorAnnotationSelectorAnnotationSelector object.

setImagePreview(String filename)

public void setImagePreview(String filename)

Sets the image preview.

Parameters:

ParameterTypeDescription
filenamejava.lang.StringThe image preview filename.

setImagePreview(InputStream image)

public void setImagePreview(InputStream image)

Sets the image preview.

Parameters:

ParameterTypeDescription
imagejava.io.InputStreamThe image stream.

clearImagePreview()

public void clearImagePreview()

Clears the image preview.

getImagePreview()

public InputStream getImagePreview()

Gets the image preview.

Returns: java.io.InputStream - Image preview as stream.