public class Pdf3DAnnotation extends PdfAnnotation
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
Constructor and Description |
---|
Pdf3DAnnotation(PdfDictionary pdfObject)
Instantiates a new Pdf3DAnnotation instance based on PdfDictionary instance, that represents existing annotation object in the document.
|
Pdf3DAnnotation(Rectangle rect, PdfObject artwork)
Creates a Pdf3DAnnotation instance.
|
Modifier and Type | Method and Description |
---|---|
PdfDictionary |
getActivationDictionary()
Gets the activation dictionary that defines the times at which the annotation shall be activated and deactivated and the state of the 3D artwork instance at those times.
|
PdfObject |
getDefaultInitialView()
Gets the default initial view of the 3D artwork that shall be used when the annotation is activated.
|
PdfName |
getSubtype()
Gets a PdfName which value is a subtype of this annotation.
|
Rectangle |
getViewBox()
Gets the 3D view box, which is the rectangular area in which the 3D artwork shall be drawn.
|
PdfBoolean |
isInteractive()
Indicates whether the 3D annotation is intended to be interactive or not.
|
Pdf3DAnnotation |
setActivationDictionary(PdfDictionary activationDictionary)
Sets the activation dictionary that defines the times at which the annotation shall be activated and deactivated and the state of the 3D artwork instance at those times.
|
Pdf3DAnnotation |
setDefaultInitialView(PdfObject initialView)
Sets the default initial view of the 3D artwork that shall be used when the annotation is activated.
|
Pdf3DAnnotation |
setInteractive(boolean interactive)
Sets the primary use of the 3D annotation.
|
Pdf3DAnnotation |
setViewBox(Rectangle viewBox)
Sets the 3D view box, which is the rectangular area in which the 3D artwork shall be drawn.
|
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 Pdf3DAnnotation(Rectangle rect, PdfObject artwork)
Pdf3DAnnotation
instance.
rect
- the annotation rectangle, defining the location of the annotation on the page in default user space units. See PdfAnnotation.setRectangle(PdfArray)
.
artwork
- 3D artwork which is represented by the annotation
public Pdf3DAnnotation(PdfDictionary pdfObject)
Pdf3DAnnotation
instance based on PdfDictionary
instance, that represents existing annotation object in the document.
pdfObject
- the PdfDictionary
representing annotation object
PdfAnnotation.makeAnnotation(PdfObject)
public PdfName getSubtype()
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 Pdf3DAnnotation setDefaultInitialView(PdfObject initialView)
initialView
- the default initial view of the 3D artwork that shall be used when the annotation is activated
Pdf3DAnnotation
instance
public PdfObject getDefaultInitialView()
public Pdf3DAnnotation setActivationDictionary(PdfDictionary activationDictionary)
activationDictionary
- dictionary that defines the times at which the annotation shall be activated and deactivated and the state of the 3D artwork instance at those times.
Pdf3DAnnotation
instance
public PdfDictionary getActivationDictionary()
public Pdf3DAnnotation setInteractive(boolean interactive)
If true, it is intended to be interactive; if false, it is intended to be manipulated programmatically, as with an ECMAScript animation. Interactive PDF processors may present different user interface controls for interactive 3D annotations (for example, to rotate, pan, or zoom the artwork) than for those managed by a script or other mechanism.
Default value: true.
interactive
- if true, it is intended to be interactive; if false, it is intended to be manipulated programmatically
Pdf3DAnnotation
instance
public PdfBoolean isInteractive()
public Pdf3DAnnotation setViewBox(Rectangle viewBox)
Default value: the annotation’s Rect entry, expressed in the target coordinate system. This value is [-w/2 -h/2 w/2 h/2], where w and h are the width and height, respectively, of Rect.
viewBox
- the rectangular area in which the 3D artwork shall be drawn
Pdf3DAnnotation
instance
public Rectangle getViewBox()
Copyright © 1998–2022 iText Group NV. All rights reserved.