PDF3DAnnotation

PDF3DAnnotation

Overview

PDF3DAnnotation is a class in Aspose.PDF FOSS for .NET. Inherits from: Annotation.

A 3D annotation that shows 3D artwork (U3D or PRC data) in a rectangle on the page.

This class declares 15 methods for PDF3DAnnotation objects in .NET programs. Available methods include: Accept, BaseParagraph, ChangeAfterResize, ClearImagePreview, Clone, Flatten, GetImagePreview, GetRectangle, PDF3DAnnotation, SetDefaultViewIndex, SetImagePreview, UpdateAppearances, and 1 additional methods. Public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: Action, Actions, ActiveState, Alignment, AnnotationFlags, AnnotationState, and 47 more.

Properties

NameTypeAccessDescription
AnnotationTypeAnnotationTypeReadGets the annotation type.
Pdf3DArtworkPDF3DArtwork?ReadThe 3D artwork behind this annotation.
DefaultViewPDF3DView?ReadDefault (annotation-level) 3D view: the 1-based SetDefaultViewIndex selection, the annotation’s own /3DV view, or the artwork’s first view.
ContentPDF3DContent?Read/WriteGets or sets the 3D model data of the artwork, or null when there is no artwork.
LightingSchemePDF3DLightingScheme?ReadGets the lighting scheme of the artwork, or null when there is no artwork.
RenderModePDF3DRenderMode?ReadGets the render mode of the artwork, or null when there is no artwork.
ViewArrayPDF3DViewArrayReadThe artwork’s views; an annotation with no resolvable artwork (e.g.
RectRectangle?Read/WriteThe annotation rectangle (position on page).
InnerRectRectangle?ReadThe annotation rectangle inset by the /RD (rectangle differences) entry — the region actually drawn inside Rect.
WidthdoubleRead/WriteThe width of the annotation rectangle.
HeightdoubleRead/WriteThe height of the annotation rectangle.
ActiveStatestring?Read/WriteCurrently-active appearance state (/AS entry).
AlignmentTextAlignmentRead/WriteText alignment (for free-text / widget annotations carrying rich text).
HorizontalAlignmentAspose.Pdf.HorizontalAlignmentRead/WriteHorizontal alignment (exposed in addition to Alignment; the two are independently settable).
TextHorizontalAlignmentAspose.Pdf.HorizontalAlignmentRead/WriteText-specific horizontal alignment override.
AppearanceAppearanceDictionaryReadAppearance dictionary (/AP entry) — keyed by appearance stream name (N, D, R).
StatesAppearanceDictionaryReadAppearance-state dictionary (the per-state sub-dict of AP/N, e.g.
NormalAppearanceXForm?ReadThe annotation’s normal (/AP /N) appearance as an XForm, or null when it has none.
Contentsstring?Read/WriteThe annotation contents (text).
OpacitydoubleRead/WriteAnnotation opacity (0.0 = transparent, 1.0 = opaque).
BorderBorder?Read/WriteAnnotation border.
ColorColorRead/WriteThe annotation border color (/C entry).
InteriorColorColor?Read/WriteThe annotation interior color (/IC entry, for circle/square/line annotations).
Titlestring?Read/WriteThe annotation title (author for markup annotations).
Namestring?Read/WriteThe annotation name (unique identifier — the /NM entry).
FullNamestring?ReadFully-qualified annotation name.
Subjectstring?Read/WriteThe annotation subject (/Subj entry).
ModifiedDatestring?ReadThe modification date.
ModifiedDateTimeRead/WriteThe /M (modified) date as a typed DateTime.
FlagsAnnotationFlagsRead/WriteAnnotation flags (/F entry) — used as the storage backing for both the int and typed forms.
AnnotationFlagsAnnotationFlagsRead/WriteTyped alias of Flags matching the public surface that exposes AnnotationFlags as a property.
ActionPdfAction?Read/WriteThe action associated with this annotation (/A entry).
ActionsPdfActionCollectionReadCollection of actions associated with this annotation.
Authorstring?ReadThe annotation author (/T entry).
AnnotationStatestring?ReadThe annotation state (/State entry), e.g.
AnnotationStateModelstring?ReadThe annotation state model (/StateModel entry), e.g.
ReplyTypestring?ReadThe reply type (/RT entry), e.g.
InReplyToAnnotation?Read/WriteThe annotation this one is replying to (/IRT entry).
QuadPointsPoint[]Read/WriteQuadPoints as an array of Point values.
PageIndexintRead1-based index of the page that owns this annotation.
PagePage?ReadThe page that owns this annotation, or null when it can’t be resolved (e.g.
UpdateAppearanceOnConvertboolRead/WriteWhether to regenerate the appearance stream when an annotation is saved into a converted document.
UseFontSubsetboolRead/WriteWhether the embedded font (if any) should be subsetted.
CharacteristicsCharacteristicsReadAppearance characteristics (border color, background color, rotation).
VerticalAlignmentVerticalAlignmentRead/WriteVertical alignment applied to this paragraph.
MarginMarginInfoRead/WriteOuter-margin info applied to this paragraph.
IsFirstParagraphInColumnboolRead/WriteForce the paragraph to start a new column.
IsKeptWithNextboolRead/WriteKeep this paragraph on the same page as the next one.
IsInNewPageboolRead/WriteForce the paragraph to start on a new page.
IsInLineParagraphboolRead/WriteInline paragraph flag (does not start a new line).
HyperlinkTextstring?Read/WriteLegacy string-typed hyperlink target.
HyperlinkHyperlink?Read/WriteTyped hyperlink decoration applied to the paragraph.
ZIndexintRead/WriteZ-order index used by the DOM renderer.

Methods

SignatureDescription
PDF3DAnnotation(page: Page, rect: Rectangle, pdf3DArtwork: PDF3DArtwork)Creates a 3D annotation (/3D) on page at rect that shows the given 3D artwork.
PDF3DAnnotation(page: Page, rect: Rectangle, pdf3DArtwork: PDF3DArtwork, activation: PDF3DActivation)Creates a 3D annotation on page at rect for the given artwork.
Accept(visitor: AnnotationSelector)Calls Accept(visitor) on this PDF3DAnnotation instance.
SetDefaultViewIndex(index: int)Selects which view of the artwork’s view array is the default view, by 1-based index; an out-of-range index is ignored.
GetImagePreview()The annotation’s poster image.
SetImagePreview(image: Stream)Sets the poster (preview) image from the bytes of image; null clears it.
SetImagePreview(filename: string)Sets the poster (preview) image from the file at filename; a missing file clears it.
ClearImagePreview()Calls ClearImagePreview on this PDF3DAnnotation instance.
GetRectangle(considerRotation: bool)Bounding rectangle adjusted by considerRotation.
ChangeAfterResize(transform: Matrix)Adjust the annotation’s geometry after the user resized the page or the host rectangle.
WriteXfdf(writer: System.Xml.XmlWriter)Serialize this annotation as an XFDF element to writer (PDF 32000 §12.7.8 / XFDF 3.0).
UpdateAppearances()Regenerate the normal appearance stream (/AP /N) from the annotation’s current geometry and colours.
Flatten()Flatten this annotation — render its visual appearance into the page content and remove it from the page’s annotations array.
BaseParagraph()Creates a paragraph with default alignment, an empty margin and no hyperlink.
Clone()Shallow clone — copies scalar/ref-shared state.

See Also

 English